--- alx-src/branches/alxconf-060/functions/config_printers.sh 2011/05/17 11:45:52 2147 +++ alx-src/branches/alxconf-060/functions/config_printers.sh 2011/05/18 14:34:35 2160 @@ -8,11 +8,10 @@ local prn_ids # first of all get the vars - get_printer_settings prn_ids=$(mysqldo "select id from cfg_printers where serial='${ALX_SERIAL}'") # first of all delete all printers, by wiping /etc/printcap and all spooler directories - CONFIG=/etc/printcap + CONFIG="/etc/printcap" clearconfig if [[ -d /var/spool/lpd ]] @@ -31,7 +30,7 @@ case ${cfg_printers_port} in lpt[0-9]*) port="/dev/lp$(( ${cfg_printers_port/lpt/}-1 ))" ;; com[0-9]*) port="/dev/ttyS$(( ${cfg_printers_port/com/}-1 ))" ;; - usb[0-9]*) port="/dev/usb/lp$(( $cfg_printers_port/usb/}-1 ))" ;; + usb[0-9]*) port="/dev/usb/lp$(( ${cfg_printers_port/usb/}-1 ))" ;; #lpd) port="lpd://${ip}/${share}" ;; #socket) port="socket://${ip}:${share}" ;; esac