Magellan Linux

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

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

revision 269 by niro, Tue Apr 12 21:39:24 2005 UTC revision 270 by niro, Wed Apr 20 11:46:41 2005 UTC
# Line 1  Line 1 
1  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_printers.sh,v 1.7 2005-04-12 21:39:24 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_printers.sh,v 1.8 2005-04-20 11:46:41 niro Exp $
2  # configures printing on the host via mysql db settings  # configures printing on the host via mysql db settings
3    
4  get_printer_settings()  get_printer_settings()
# Line 152  config_printing() Line 152  config_printing()
152   echo "</Printer>" >> /etc/cups/printers.conf   echo "</Printer>" >> /etc/cups/printers.conf
153   done   done
154    
155     # setup lpd print-services
156     echo "printer stream tcp nowait lp /usr/lib/cups/daemon/cups-lpd cups-lpd" > /etc/inetd.conf
157    
158   # start samba and cups if ALX_COUNT > 0   # start samba and cups if ALX_COUNT > 0
159   if [[ ${ALX_COUNT} != 0 ]]   if [[ ${ALX_COUNT} != 0 ]]
160   then   then
161  # echo "DEBUG: adding samba+cups"  # echo "DEBUG: adding samba+cups+inetd"
162     rc-config add inetd &> /dev/null
163   rc-config add cups &> /dev/null   rc-config add cups &> /dev/null
164   rc-config add samba &> /dev/null   rc-config add samba &> /dev/null
165   else   else
166  # echo "DEBUG: deleting samba+cups"  # echo "DEBUG: deleting samba+cups+inetd"
167     rc-config del inetd &> /dev/null
168   rc-config del cups &> /dev/null   rc-config del cups &> /dev/null
169   rc-config del samba &> /dev/null   rc-config del samba &> /dev/null
170   fi   fi

Legend:
Removed from v.269  
changed lines
  Added in v.270