11 |
#%before: |
#%before: |
12 |
#%after: |
#%after: |
13 |
|
|
14 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.17 2005-08-18 08:10:46 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.18 2005-08-28 19:30:53 niro Exp $ |
15 |
|
|
16 |
# checks first if the client was already configured and if it has an valid serial |
# checks first if the client was already configured and if it has an valid serial |
17 |
# if not it runs the autoconfiguration script |
# if not it runs the autoconfiguration script |
114 |
then |
then |
115 |
ALX_STATE="ok" |
ALX_STATE="ok" |
116 |
else |
else |
117 |
|
# abort on non valid serial |
118 |
ALX_STATE="invalid serial" |
ALX_STATE="invalid serial" |
119 |
|
echo "ALX_STATE=${ALX_STATE}" > /etc/alxconfig-ng/state/state |
120 |
|
show_invalid_serial_msg |
121 |
|
exit 1 |
122 |
fi |
fi |
123 |
|
|
124 |
else |
else |
174 |
then |
then |
175 |
ALX_STATE="ok" |
ALX_STATE="ok" |
176 |
else |
else |
177 |
|
# abort on non valid serial |
178 |
ALX_STATE="invalid serial" |
ALX_STATE="invalid serial" |
179 |
|
echo "ALX_STATE=${ALX_STATE}" > /etc/alxconfig-ng/state/state |
180 |
|
show_invalid_serial_msg |
181 |
|
exit 1 |
182 |
fi |
fi |
183 |
|
|
184 |
# write current state to temp file |
# write current state to temp file |