--- mcore-src/trunk/mcore-tools/src/modules/lprng/printing.client.class.in 2015/09/17 14:03:58 2583 +++ mcore-src/trunk/mcore-tools/src/modules/lprng/printing.client.class.in 2015/09/17 14:34:57 2584 @@ -16,15 +16,15 @@ mecho " name - name of the printer" mecho " port - printing port (lpt1, usb1, com1 ... lptN, usbN, comN" # mecho " ip - ip of the remote printer - optional" - mecho " share - share/port name of the remote printer - optional" +# mecho " share - share/port name of the remote printer - optional" } helper_addprinter() { local name="$1" local port="$2" - local ip="$3" - local share="$4" +# local ip="$3" +# local share="$4" [[ -z ${name} ]] && help_printing_printer && return 1 [[ -z ${port} ]] && help_printing_printer && return 1 @@ -81,11 +81,12 @@ local action="${CLASS_ARGV[0]}" local name="${CLASS_ARGV[1]}" local port="${CLASS_ARGV[2]}" - local ip="${CLASS_ARGV[3]}" - local share="${CLASS_ARGV[4]}" +# local ip="${CLASS_ARGV[3]}" +# local share="${CLASS_ARGV[4]}" case "${action}" in - add) helper_addprinter "${name}" "${port}" "${ip}" "${share}" ;; +# add) helper_addprinter "${name}" "${port}" "${ip}" "${share}" ;; + add) helper_addprinter "${name}" "${port}";; del) helper_delprinter "${name}" ;; *) help_printing_printer && return 1 ;; esac