Annotation of coherent/g/usr/bin/mlp/MLP.post, revision 1.1

1.1     ! root        1: :
        !             2: 
        !             3: clear
        !             4: 
        !             5: trap "clear;echo \"Ok, Nothing done\"; 
        !             6: rm -fr /MLP.1 /conf/MLP.post /tmp/MLP*;exit" 1 2 3 15
        !             7: 
        !             8: echo "\n\n\n\n\n\n\n\n\n\n\n\n
        !             9:              ********************************************************
        !            10: 
        !            11:                Multiple Line Printer Spooler (MLP) Version 0.9 Beta
        !            12: 
        !            13:                         Magnetic Data Operations, (c) 1992
        !            14: 
        !            15:                            Product Installation & Setup
        !            16: 
        !            17:              ********************************************************
        !            18: 
        !            19: 
        !            20:                   Press <Enter> to continue, <Ctrl-C> to quit..."
        !            21: 
        !            22: 
        !            23: case "`id`" in
        !            24:    *root*) ;;
        !            25:         *) echo "\n\n\n\007Sorry, you need to be superuser to do this.  "
        !            26:            echo "Try again\n"
        !            27:            exit;;
        !            28: esac
        !            29: 
        !            30: 
        !            31: read A
        !            32: 
        !            33: clear
        !            34: 
        !            35: if test -f /usr/spool/mlp/controls
        !            36: then
        !            37:    echo "Existing Controls database moved to controls.o"
        !            38:    mv /usr/spool/mlp/controls /usr/spool/mlp/controls.o
        !            39: fi
        !            40: 
        !            41: if test -f /usr/bin/lp
        !            42: then
        !            43:    echo "Existing /usr/bin/lp moved to lp.o"
        !            44:    mv /usr/bin/lp /usr/bin/lp.o
        !            45: fi
        !            46: 
        !            47: if test -f /usr/bin/lpr
        !            48: then
        !            49:    echo "Existing /usr/bin/lpr moved to lpr.o"
        !            50:    mv /usr/bin/lpr /usr/bin/lpr.o
        !            51: fi
        !            52: 
        !            53: 
        !            54: echo "\nDo you want COHERENT to start MLP automatically? (y/n) >Y\b\c"; read A
        !            55: 
        !            56: case "$A" in
        !            57:    [Nn]*) ;;
        !            58:        *) MESS="Start MLP scheduler daemon"
        !            59:           CMD="/usr/bin/lpsched"
        !            60: 
        !            61:           cp /etc/rc /etc/rc.o
        !            62: 
        !            63:           grep -v "$MESS" </etc/rc.o | grep -v "$CMD" >/etc/rc
        !            64:           echo "\n: $MESS\n$CMD" >>/etc/rc
        !            65:           chmog 744 root root /etc/rc
        !            66: 
        !            67:           echo "Existing /etc/rc has been moved to rc.o"
        !            68:           ;;
        !            69: esac
        !            70: 
        !            71: 
        !            72: echo "\nDo you want the online manual pages? (y/n) > Y\b\c"; read MAN
        !            73: 
        !            74: case "$MAN" in
        !            75:    [Nn]*) echo "\nInstalling....\c";    MAN=N;;
        !            76:        *) echo "\nInstalling.......\c";  MAN=Y;;
        !            77: esac
        !            78: 
        !            79: 
        !            80: if [ "$MAN" = "Y" ]
        !            81: then
        !            82:    if test -s /usr/man/man.index
        !            83:    then
        !            84:       cd /
        !            85:       uncompress /tmp/MLPman.cpio
        !            86:       echo "\b \b\c"
        !            87: 
        !            88:       cpio -idumc </tmp/MLPman.cpio 2>/dev/null
        !            89:       echo "\b \b\c"
        !            90: 
        !            91:       cd /usr/man/COHERENT/MLP
        !            92:       List=`echo *`
        !            93: 
        !            94:       for Next in $List
        !            95:       do
        !            96:          echo "COHERENT/MLP/$Next $Next" >>/usr/man/man.index
        !            97:       done
        !            98: 
        !            99:       sort -u </usr/man/man.index >/tmp/$$
        !           100:       cat /tmp/$$ >/usr/man/man.index
        !           101:       rm  /tmp/$$
        !           102:       echo "\b \b\c"
        !           103:    else
        !           104:       echo "\007The COHERENT online manual does not seem to be installed."
        !           105:    fi
        !           106: fi
        !           107: 
        !           108: 
        !           109: cd /
        !           110: uncompress /tmp/MLP.cpio
        !           111: echo "\b \b\c"
        !           112: 
        !           113: cpio -idumc </tmp/MLP.cpio 2>/dev/null
        !           114: echo "\b \b\c"
        !           115: 
        !           116: 
        !           117: T=/usr/spool/mlp/backend
        !           118: 
        !           119: mv $T/lp        /usr/bin
        !           120: mv $T/lpstat    /usr/bin
        !           121: mv $T/lpsched   /usr/bin
        !           122: mv $T/review    /usr/bin
        !           123: echo "\b \b\c"
        !           124: 
        !           125: 
        !           126: rm -fr /usr/bin/lpshut;     ln /usr/bin/lp        /usr/bin/lpshut
        !           127: rm -fr /usr/bin/reprint;    ln /usr/bin/lp        /usr/bin/reprint
        !           128: rm -fr /usr/bin/lpadmin;    ln /usr/bin/lpstat    /usr/bin/lpadmin
        !           129: rm -fr /usr/bin/cancel;     ln /usr/bin/lpstat    /usr/bin/cancel
        !           130: rm -fr /usr/bin/route;      ln /usr/bin/lpstat    /usr/bin/route
        !           131: rm -fr /usr/bin/chreq;      ln /usr/bin/lpstat    /usr/bin/chreq
        !           132: rm -fr /usr/bin/lpr;        ln /usr/bin/lp        /usr/bin/lpr
        !           133: echo "\b \b\c"
        !           134: 
        !           135: 
        !           136: if [ "$MAN" = "Y" ]
        !           137: then
        !           138:    echo "\n\nThe online manual has the following new topics:\n   "
        !           139:    echo "$List"
        !           140: fi
        !           141: 
        !           142: 
        !           143: 
        !           144: A=`lpstat -v`
        !           145: 
        !           146: if [ "$A" = "" ]
        !           147: then
        !           148:     lpadmin -pmain -v/dev/lpt1 -mdefault
        !           149:     lpadmin -dmain
        !           150: fi
        !           151: 
        !           152: lpadmin -pdisk -v/dev/null -mdisk
        !           153: 
        !           154: echo "\nThe following printer(s) are defined:\n"
        !           155: lpstat -v | awk '{print "   " $0}'
        !           156: 
        !           157: 
        !           158: 
        !           159: echo "\n\nPress <Enter> to continue...\c"
        !           160: read A
        !           161: 
        !           162: rm -fr /MLP.1 /conf/MLP.post /tmp/MLP*

unix.superglobalmegacorp.com

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