143 |
else |
else |
144 |
# abort on non valid serial |
# abort on non valid serial |
145 |
ALX_STATE="invalid serial" |
ALX_STATE="invalid serial" |
146 |
echo "ALX_STATE=${ALX_STATE}" > /etc/alxconfig-ng/state/state |
echo "ALX_STATE=\"${ALX_STATE}\"" > /etc/alxconfig-ng/state/state |
147 |
show_invalid_serial_msg |
show_invalid_serial_msg |
148 |
exit 1 |
exit 1 |
149 |
fi |
fi |
209 |
fi |
fi |
210 |
|
|
211 |
# write current state to temp file |
# write current state to temp file |
212 |
echo "ALX_STATE=${ALX_STATE}" > /etc/alxconfig-ng/state/state |
echo "ALX_STATE=\"${ALX_STATE}\"" > /etc/alxconfig-ng/state/state |
213 |
[ -f /hardware-auto-detection ] && rm /hardware-auto-detection |
[ -f /hardware-auto-detection ] && rm /hardware-auto-detection |
214 |
|
|
215 |
# now export ALX_FORCED_RECHECK=true |
# now export ALX_FORCED_RECHECK=true |
234 |
# set ALX_STATE to ok so everybody knows that everything was ok |
# set ALX_STATE to ok so everybody knows that everything was ok |
235 |
ALX_STATE=ok |
ALX_STATE=ok |
236 |
|
|
237 |
echo "ALX_SERIAL=${ALX_SERIAL}" > /etc/alxconfig-ng/serial |
echo "ALX_SERIAL=\"${ALX_SERIAL}\"" > /etc/alxconfig-ng/serial |
238 |
echo "ALX_REG_DATE=${CUR_MTIME}" >> /etc/alxconfig-ng/serial |
echo "ALX_REG_DATE=\"${CUR_MTIME}\"" >> /etc/alxconfig-ng/serial |
239 |
|
|
240 |
evaluate_retval |
evaluate_retval |
241 |
else |
else |
254 |
fi |
fi |
255 |
|
|
256 |
# write current state to temp file |
# write current state to temp file |
257 |
echo "ALX_STATE=${ALX_STATE}" > /etc/alxconfig-ng/state/state |
echo "ALX_STATE=\"${ALX_STATE}\"" > /etc/alxconfig-ng/state/state |
258 |
echo "ALX_IFACE=${ALX_IFACE}" >> /etc/alxconfig-ng/state/state |
echo "ALX_IFACE=\"${ALX_IFACE}\"" >> /etc/alxconfig-ng/state/state |
259 |
} |
} |
260 |
|
|
261 |
|
|