69 |
# nice status |
# nice status |
70 |
$CURS_UP |
$CURS_UP |
71 |
$SET_WCOL |
$SET_WCOL |
72 |
echo "[ U, State: ${ALX_STATE} ]" |
echo "[ SN: ${ALX_SERIAL}, U, ${ALX_STATE} ]" |
73 |
|
|
74 |
mysqldo "update state_connected set |
mysqldo "update state_connected set |
75 |
hostname='${HOSTNAME}', |
hostname='${HOSTNAME}', |
84 |
# nice status |
# nice status |
85 |
$CURS_UP |
$CURS_UP |
86 |
$SET_WCOL |
$SET_WCOL |
87 |
echo "[ N, State: ${ALX_STATE} ]" |
echo "[ SN: ${ALX_SERIAL}, N, ${ALX_STATE} ]" |
88 |
|
|
89 |
mysqldo "insert into state_connected( |
mysqldo "insert into state_connected( |
90 |
serial, |
serial, |
118 |
|
|
119 |
echo -e ${COLMAGENTA}"Unregister system from database"${COLDEFAULT} |
echo -e ${COLMAGENTA}"Unregister system from database"${COLDEFAULT} |
120 |
|
|
121 |
|
# nice status |
122 |
|
$CURS_UP |
123 |
|
$SET_WCOL |
124 |
|
echo "[ SN: ${ALX_SERIAL} ]" |
125 |
|
|
126 |
mysqldo "delete from state_connected where serial='${ALX_SERIAL}' and mac='${CUR_MAC}';" |
mysqldo "delete from state_connected where serial='${ALX_SERIAL}' and mac='${CUR_MAC}';" |
127 |
evaluate_retval |
evaluate_retval |
128 |
} |
} |