--- alx-src/trunk/alxconfig-ng/init.d/alxsettings 2005/05/11 12:25:39 274 +++ alx-src/trunk/alxconfig-ng/init.d/alxsettings 2005/07/10 17:55:03 275 @@ -11,7 +11,7 @@ #%before: #%after: -# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.13 2005-04-18 23:04:43 niro Exp $ +# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.14 2005-07-10 17:55: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 @@ -325,6 +325,30 @@ #set system state to 'already configured' touch /etc/alxconfig-ng/state/configured + # create a fresh fluxbox directory + [ -d ${ALX_UNPRIV_HOME}/.fluxbox ] && rm -rf ${ALX_UNPRIV_HOME}/.fluxbox + install -d ${ALX_UNPRIV_HOME}/.fluxbox + + # now generate fluxbox config files + + # fluxbox main config + cat ${ALX_SKELETONS}/fluxbox/init \ + > ${ALX_UNPRIV_HOME}/.fluxbox/init + + # fluxbox menu header + cat ${ALX_SKELETONS}/fluxbox/menu.header \ + > ${ALX_UNPRIV_HOME}/.fluxbox/menu + + # add a newline (maybe there is no crlf in the header) + echo >> ${ALX_UNPRIV_HOME}/.fluxbox/menu + + # fluxbox menu footer + cat ${ALX_SKELETONS}/fluxbox/menu.footer \ + >> ${ALX_UNPRIV_HOME}/.fluxbox/menu + + # add a newline (maybe there is no crlf in the footer) + echo >> ${ALX_UNPRIV_HOME}/.fluxbox/menu + # default passwords are bad #usermod -p $(perl -e "printf(crypt('foobar','AD'))") root #usermod -p $(perl -e "printf(crypt('foobar','AD'))") ${ALX_UNPRIV_USER}