--- alx-src/branches/alxconf-060/init.d/alxsetstate 2011/05/16 11:08:31 2122 +++ alx-src/branches/alxconf-060/init.d/alxsetstate 2011/05/16 11:16:58 2123 @@ -69,7 +69,7 @@ # nice status $CURS_UP $SET_WCOL - echo "[ U, State: ${ALX_STATE} ]" + echo "[ SN: ${ALX_SERIAL}, U, ${ALX_STATE} ]" mysqldo "update state_connected set hostname='${HOSTNAME}', @@ -84,7 +84,7 @@ # nice status $CURS_UP $SET_WCOL - echo "[ N, State: ${ALX_STATE} ]" + echo "[ SN: ${ALX_SERIAL}, N, ${ALX_STATE} ]" mysqldo "insert into state_connected( serial, @@ -118,6 +118,11 @@ echo -e ${COLMAGENTA}"Unregister system from database"${COLDEFAULT} + # nice status + $CURS_UP + $SET_WCOL + echo "[ SN: ${ALX_SERIAL} ]" + mysqldo "delete from state_connected where serial='${ALX_SERIAL}' and mac='${CUR_MAC}';" evaluate_retval }