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 2718 by niro, Mon Aug 8 08:43:51 2011 UTC revision 3474 by niro, Fri Apr 13 18:10:01 2012 UTC
# Line 32  config_printing() Line 32  config_printing()
32   # do not add any printers if the name is empty - warn the user   # do not add any printers if the name is empty - warn the user
33   if [[ -z ${cfg_printers_printer_name} ]]   if [[ -z ${cfg_printers_printer_name} ]]
34   then   then
35   echo -e "${COLRED}No printer_name given in config of printer '${i}' with port '${cfg_printers_port}'. Not added!${COLDEFAULT}"   rc_echo "${COLRED}No printer_name given in config of printer '${i}' with port '${cfg_printers_port}'. Not added!${COLDEFAULT}"
36   continue   continue
37   fi   fi
38    
# Line 56  config_printing() Line 56  config_printing()
56    
57   # install spooler directories   # install spooler directories
58   install -o lp -g lp -m0700 -d /var/spool/lpd/${cfg_printers_printer_name}   install -o lp -g lp -m0700 -d /var/spool/lpd/${cfg_printers_printer_name}
59    
60     # create empty log files
61     touch /var/log/lprng/${cfg_printers_printer_name}
62     chown lp:lp /var/log/lprng/${cfg_printers_printer_name}
63     chmod 0600 /var/log/lprng/${cfg_printers_printer_name}
64   done   done
65    
66   # start lprng   # start lprng

Legend:
Removed from v.2718  
changed lines
  Added in v.3474