Magellan Linux

Diff of /alx-src/branches/alxconf-060/functions/config_printers.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2609 by niro, Wed May 18 14:37:55 2011 UTC revision 2610 by niro, Wed Jul 6 21:33:33 2011 UTC
# Line 26  config_printing() Line 26  config_printing()
26   for i in ${prn_ids}   for i in ${prn_ids}
27   do   do
28   evaluate_table cfg_printers "where serial='${ALX_SERIAL}' and id='${i}'"   evaluate_table cfg_printers "where serial='${ALX_SERIAL}' and id='${i}'"
29    
30     # do not add any printers if the name is empty - warn the user
31     if [[ -z ${cfg_printers_printer_name} ]]
32     then
33     echo -e "${COLRED}No printer_name given in config of printer '${i}' with port '${cfg_printers_port}'. Not added!${COLDEFAULT}"
34     continue
35     fi
36    
37   # get real port settings   # get real port settings
38   case ${cfg_printers_port} in   case ${cfg_printers_port} in
39   lpt[0-9]*) port="/dev/lp$(( ${cfg_printers_port/lpt/}-1 ))" ;;   lpt[0-9]*) port="/dev/lp$(( ${cfg_printers_port/lpt/}-1 ))" ;;

Legend:
Removed from v.2609  
changed lines
  Added in v.2610