Il giorno ven, 18/11/2005 alle 14.15 +0100, vic ha scritto:
[cut]
> if [ "$1" = "help" ] || [ "$1" = "-h" ]; then
> echo 'option -h : help'
> echo ' -i : install'
^^^^^^^^^^^^^
Di questo non hai postato il codice (o magari non compare lpadmin), nel
senso:
if [ "$1" = "-i" ]; then ...
anche se il lavoro sembrerebbe farlo questa riga qui sotto...
> lpadmin -p HL2030 -E -v usb:/dev/usb/lp0 -m brhl2030_cups.ppd
..e sembrerebbe corretta visto che da manuale
"Run the lpadmin command with the -p option to add a printer to CUPS:
/usr/sbin/lpadmin -p printer -E -v device -m ppd ENTER "
/dev/usb/lp0 esiste ??
Hai abilitato l'accesso a root su cups?
$sudo adduser cupsys shadow
$sudo /etc/init.d/cupsys restart
poi riprova ad aggiungere la stampante.
cmq
http://localhost:631 e' tuo amico
ciao
Filo
|