Magellan Linux

Diff of /alx-src/trunk/tinyalxconfig-ng/functions/config_printers.sh

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

revision 483 by niro, Sat Jun 7 16:59:07 2008 UTC revision 496 by niro, Tue Jun 10 12:21:25 2008 UTC
# Line 1  Line 1 
1  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_printers.sh,v 1.2 2008-06-07 16:59:07 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_printers.sh,v 1.3 2008-06-10 12:21:25 niro Exp $
2  # configures printing on the host via mysql db settings  # configures printing on the host via mysql db settings
3    
4  add_printcap()  add_printcap()
# Line 13  config_printing() Line 13  config_printing()
13    
14   # first of all delete all printers - printcap and spooler dirs -   # first of all delete all printers - printcap and spooler dirs -
15   :> /etc/printcap   :> /etc/printcap
16   find /var/spool/lpd -type d | xargs rm -rf   find /var/spool/lpd/* -type d | xargs rm -rf &> /dev/null
17    
18   printer_list=$(mysqldo "select id from cfg_printers where serial='${ALX_SERIAL}'")   printer_list=$(mysqldo "select id from cfg_printers where serial='${ALX_SERIAL}'")
19   for printer in ${printer_list}   for printer in ${printer_list}

Legend:
Removed from v.483  
changed lines
  Added in v.496