__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
#!/bin/sh 
INSTALLDIR="/usr/local/bin"
SPOOLDIR="/var/spool/lpd"
PAPER=letter
for paper in letter legal a3 a4 ; do
    if [ "$1" = "$paper" ] ; then
	PAPER=$paper
    fi
done

echo "PAPERSIZE used by  ghostscript will be $PAPER"

for PRINTER in color coloreco bw bweco ascii ; do
    
    SEDCMD="sed s/^#PAPER=$PAPER/PAPER=$PAPER/  $PRINTER.if"
    $SEDCMD > $INSTALLDIR/$PRINTER.if 
    chmod 0755 $INSTALLDIR/$PRINTER.if

    if [ ! -d $SPOOLDIR/$PRINTER ] ; then 
       	mkdir -p $SPOOLDIR/$PRINTER
       	touch $SPOOLDIR/$PRINTER/log
       	touch $SPOOLDIR/$PRINTER/acct
    fi

done























Filemanager

Name Type Size Permission Actions
README.lpd File 1.04 KB 0644
ascii.if File 210 B 0644
bw.if File 402 B 0644
bweco.if File 413 B 0644
color.if File 386 B 0644
coloreco.if File 397 B 0644
lpdsetup File 614 B 0755
printcap File 1.35 KB 0644
Filemanager