Magellan Linux

Diff of /alx-src/trunk/alxconfig-ng/init.d/alxsettings

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

revision 356 by niro, Sun Oct 9 23:20:17 2005 UTC revision 357 by niro, Mon Oct 10 21:06:03 2005 UTC
# Line 11  Line 11 
11  #%before:  #%before:
12  #%after:  #%after:
13    
14  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.24 2005-10-09 23:20:17 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.25 2005-10-10 21:06:03 niro Exp $
15    
16  # checks first if the client was already configured and if it has an valid serial  # checks first if the client was already configured and if it has an valid serial
17  # if not it runs the autoconfiguration script  # if not it runs the autoconfiguration script
# Line 740  reset_system_settings() Line 740  reset_system_settings()
740   rm -f /etc/alxconfig-ng/serial   rm -f /etc/alxconfig-ng/serial
741   rm -rf /etc/alxconfig-ng/state   rm -rf /etc/alxconfig-ng/state
742    
743     # clear all printers & net-shares
744     :> /etc/cups/printers.conf
745     :> /etc/samba/smb.conf
746    
747     # remove inetd, cups & smb from init
748     rc-config del inetd &> /dev/null
749     rc-config del cups &> /dev/null
750     rc-config del samba &> /dev/null
751    
752     # remove all user settings
753     [ -d ${ALX_UNPRIV_HOME} ] && rm -rf ${ALX_UNPRIV_HOME}
754    
755     # remove all ica-sessions
756     find ${ALX_ICA_SESSIONS} -type -f -name '*.ica' | xargs rm
757    
758     # remove all old nics and modules configs
759     find /etc/conf.d -type f -name 'net.*' | xargs rm
760     find /etc/modules.d -type f -name 'net.*' | xargs rm
761    
762     # restore default networking
763     cat ${ALX_SKELETONS}/net/net.eth0 > /etc/conf.d/net.eth0
764    
765   echo "I am done now, press [Enter] to reboot system ..."   echo "I am done now, press [Enter] to reboot system ..."
766   else   else
767   echo "Aborted, press [Enter] to reboot system ..."   echo "Aborted, press [Enter] to reboot system ..."

Legend:
Removed from v.356  
changed lines
  Added in v.357