9 |
#%before: |
#%before: |
10 |
#%after: |
#%after: |
11 |
|
|
12 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsetstate,v 1.7 2005-08-17 21:20:12 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsetstate,v 1.8 2005-08-28 19:30:25 niro Exp $ |
13 |
|
|
14 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
15 |
source $rc_functions |
source $rc_functions |
51 |
# validate current serial |
# validate current serial |
52 |
if ! validate_serial "${ALX_SERIAL}" "${ALX_REG_DATE}" "${CUR_MAC}" |
if ! validate_serial "${ALX_SERIAL}" "${ALX_REG_DATE}" "${CUR_MAC}" |
53 |
then |
then |
54 |
|
# abort on non valid serial |
55 |
ALX_STATE="invalid serial" |
ALX_STATE="invalid serial" |
56 |
|
echo "ALX_STATE=${ALX_STATE}" > /etc/alxconfig-ng/state/state |
57 |
|
show_invalid_serial_msg |
58 |
|
exit 1 |
59 |
fi |
fi |
60 |
|
|
61 |
#first check if an entry exist with my serial |
#first check if an entry exist with my serial |