--- alx-src/trunk/alxconfig-ng/init.d/alxsettings 2005/10/09 23:20:17 350 +++ alx-src/trunk/alxconfig-ng/init.d/alxsettings 2005/10/10 21:06:03 357 @@ -11,7 +11,7 @@ #%before: #%after: -# $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 $ # checks first if the client was already configured and if it has an valid serial # if not it runs the autoconfiguration script @@ -740,6 +740,28 @@ rm -f /etc/alxconfig-ng/serial rm -rf /etc/alxconfig-ng/state + # clear all printers & net-shares + :> /etc/cups/printers.conf + :> /etc/samba/smb.conf + + # remove inetd, cups & smb from init + rc-config del inetd &> /dev/null + rc-config del cups &> /dev/null + rc-config del samba &> /dev/null + + # remove all user settings + [ -d ${ALX_UNPRIV_HOME} ] && rm -rf ${ALX_UNPRIV_HOME} + + # remove all ica-sessions + find ${ALX_ICA_SESSIONS} -type -f -name '*.ica' | xargs rm + + # remove all old nics and modules configs + find /etc/conf.d -type f -name 'net.*' | xargs rm + find /etc/modules.d -type f -name 'net.*' | xargs rm + + # restore default networking + cat ${ALX_SKELETONS}/net/net.eth0 > /etc/conf.d/net.eth0 + echo "I am done now, press [Enter] to reboot system ..." else echo "Aborted, press [Enter] to reboot system ..."