Annotation of coherent/g/usr/bin/mlp/MK, revision 1.1.1.1

1.1       root        1: :
                      2: #
                      3: # This script builds a new MLP system AND distribution disk from the source
                      4: #
                      5: 
                      6: # If you set NODISK to something (YES) then no distribution disk will be built
                      7: 
                      8: NODISK=""
                      9: 
                     10: case `id` in
                     11:    *root*) ;;
                     12:         *) echo "\nSorry, you need to be superuser.\007\n"
                     13:            exit;;
                     14: esac
                     15: 
                     16: echo "Putting MLP where it goes..."
                     17: 
                     18: TARGET=/usr/bin      
                     19: 
                     20: mkdir /usr/spool/mlp;         chmog 755 daemon daemon /usr/spool/mlp
                     21: mkdir /usr/spool/mlp/backend; chmog 755 daemon daemon /usr/spool/mlp/backend
                     22: mkdir /usr/spool/mlp/queue;   chmog 755 daemon daemon /usr/spool/mlp/queue
                     23: mkdir /usr/spool/mlp/route;   chmog 755 daemon daemon /usr/spool/mlp/route
                     24: 
                     25: rm -fr /usr/spool/mlp/queue/*
                     26: cp /tools/spool/controls.o /usr/spool/mlp/controls
                     27: chmog 644 daemon daemon /usr/spool/mlp/controls
                     28: >/usr/spool/mlp/status
                     29: chmog 644 daemon daemon /usr/spool/mlp/status
                     30: 
                     31: find /usr/spool/mlp         ! -type d -exec chmog 0644 daemon daemon {} \;
                     32: find /usr/spool/mlp           -type d -exec chmog 0755 daemon daemon {} \;
                     33: find /usr/spool/mlp/backend           -exec chmog 0755 daemon daemon {} \;
                     34: 
                     35: List="lp lpstat lpsched review"
                     36: 
                     37: for Next in $List
                     38: do
                     39:    cp    /tools/spool/$Next  /usr/bin/$Next
                     40:    chmog 04755 daemon daemon /usr/bin/$Next
                     41: 
                     42:    cp    /tools/spool/$Next  /usr/spool/mlp/backend/$Next
                     43:    chmog 04755 daemon daemon /usr/spool/mlp/backend/$Next
                     44: done
                     45: 
                     46: cd $TARGET; rm -fr lpr lpshut reprint cancel chreq route lpadmin
                     47: 
                     48: 
                     49: ln lp        lpshut
                     50: ln lp        reprint
                     51: ln lp        lpr
                     52: ln lpstat    cancel
                     53: ln lpstat    chreq
                     54: ln lpstat    route
                     55: ln lpstat    lpadmin
                     56: 
                     57: 
                     58: if [ "$NODISK" != "" ]
                     59: then
                     60:    exit
                     61: fi
                     62: 
                     63: 
                     64: echo "Making an MLP install disk..."
                     65: 
                     66: DEV=fd0135ds18
                     67: SIZE=250
                     68: 
                     69: echo "system" >/usr/spool/mlp/route/root
                     70: chmog 644 /usr/spool/mlp/route/root
                     71: 
                     72: find /usr/man/COHERENT/MLP -print | sort -u | cpio -ovc >/tmp/MLPman.cpio
                     73: find /usr/spool/mlp        -print | sort -u | cpio -ovc >/tmp/MLP.cpio
                     74: 
                     75: rm -fr /tmp/MLPman.cpio.Z; compress -v /tmp/MLPman.cpio
                     76: rm -fr /tmp/MLP.cpio.Z;    compress -v /tmp/MLP.cpio
                     77: 
                     78: rm -fr /tmp/list
                     79: 
                     80: mkfs /dev/$DEV $SIZE
                     81: mount /dev/$DEV /mnt
                     82: 
                     83: cp /tools/spool/MLP.post /conf
                     84: 
                     85: echo "/conf\n/conf/MLP.post\n/tmp\n/tmp/MLP.cpio.Z\n/tmp/MLPman.cpio.Z" | 
                     86: cpio -ov >/tmp/remote
                     87: 
                     88: echo "/conf\n/conf/MLP.post\n/tmp\n/tmp/MLP.cpio.Z\n/tmp/MLPman.cpio.Z" | 
                     89: cpio -pdumv /mnt
                     90: 
                     91: >/mnt/MLP.1
                     92: 
                     93: umount /dev/$DEV
                     94: 
                     95: fsck /dev/$DEV
                     96: 
                     97: rm -fr /tmp/list /conf/MLP.post 
                     98: cd /usr/spool/mlp/backend
                     99: rm -fr lp lpstat lpsched review

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.