--- alx-src/trunk/tinyalxconfig-ng/init.d/alxsettings 2008/06/04 17:19:37 390 +++ alx-src/trunk/tinyalxconfig-ng/init.d/alxsettings 2008/06/04 18:02:00 391 @@ -11,7 +11,7 @@ #%before: #%after: -# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/init.d/alxsettings,v 1.3 2008-06-04 16:54:35 niro Exp $ +# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/init.d/alxsettings,v 1.4 2008-06-04 18:02:00 niro Exp $ # checks first if the client was already configured and if it has an valid serial # if not it runs the autoconfiguration script @@ -153,8 +153,13 @@ else echo -e ${COLMAGENTA}"Preparing system for first boot"${COLDEFAULT} fi - ALX_HW_DETECT=true - /etc/init.d/hwdetect start + # cleaning up old data-crap + if [ -d /etc/sysconfig/hwsetup ] + then + echo -e ${COLOREDSTAR}"Cleaning up old data ..." + rm -f /etc/sysconfig/hwsetup/* + fi + echo -en "${COLOREDSTAR}";hwsetup -p > /dev/null # set hostname to alx_default_hostname # use old hostname if this is a forced re-check