--- alx-src/branches/alxconf-060/functions/config_printers.sh 2011/05/16 12:09:51 2125 +++ alx-src/branches/alxconf-060/functions/config_printers.sh 2011/05/16 12:23:08 2126 @@ -54,9 +54,9 @@ do # get real port settings case ${ALX_PORT[${i}]} in - lpt[0-9]*) port="/dev/lp$(( ${port/lpt/}-1 ))" ;; - com[0-9]*) port="/dev/ttyS$(( ${port/com/}-1 ))" ;; - usb[0-9]*) port="/dev/usb/lp$(( ${port/usb/}-1 ))" ;; + lpt[0-9]*) port="/dev/lp$(( ${ALX_PORT[${i}]/lpt/}-1 ))" ;; + com[0-9]*) port="/dev/ttyS$(( ${ALX_PORT[${i}]/com/}-1 ))" ;; + usb[0-9]*) port="/dev/usb/lp$(( ${ALX_PORT[${i}]/usb/}-1 ))" ;; #lpd) port="lpd://${ip}/${share}" ;; #socket) port="socket://${ip}:${share}" ;; esac