--- alx-src/trunk/alxconfig-ng/functions/config_printers.sh 2005/04/12 20:54:19 241 +++ alx-src/trunk/alxconfig-ng/functions/config_printers.sh 2005/04/12 21:39:24 244 @@ -1,4 +1,4 @@ -# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_printers.sh,v 1.6 2005-04-12 20:54:13 niro Exp $ +# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_printers.sh,v 1.7 2005-04-12 21:39:24 niro Exp $ # configures printing on the host via mysql db settings get_printer_settings() @@ -151,4 +151,16 @@ echo "KLimit 0" >> /etc/cups/printers.conf echo "" >> /etc/cups/printers.conf done + + # start samba and cups if ALX_COUNT > 0 + if [[ ${ALX_COUNT} != 0 ]] + then +# echo "DEBUG: adding samba+cups" + rc-config add cups &> /dev/null + rc-config add samba &> /dev/null + else +# echo "DEBUG: deleting samba+cups" + rc-config del cups &> /dev/null + rc-config del samba &> /dev/null + fi }