9 |
#%before: |
#%before: |
10 |
#%after: |
#%after: |
11 |
|
|
12 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsetstate,v 1.3 2005-03-09 00:04:18 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsetstate,v 1.4 2005-03-09 00:05:50 niro Exp $ |
13 |
|
|
14 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
15 |
source $rc_functions |
source $rc_functions |
29 |
unset ALX_SERIAL ALX_STATE |
unset ALX_SERIAL ALX_STATE |
30 |
|
|
31 |
#get current system state |
#get current system state |
32 |
if [ -f /etc/alx-config/state/state ] |
if [ -f /etc/alxconfig-ng/state/state ] |
33 |
then |
then |
34 |
source /etc/alx-config/state/state |
source /etc/alxconfig-ng/state/state |
35 |
else |
else |
36 |
ALX_STATE=error |
ALX_STATE=error |
37 |
fi |
fi |
124 |
########### starts here ################ |
########### starts here ################ |
125 |
|
|
126 |
#first of all get current system serial |
#first of all get current system serial |
127 |
if [ -f /etc/alx-config/serial ] |
if [ -f /etc/alxconfig-ng/serial ] |
128 |
then |
then |
129 |
source /etc/alx-config/serial |
source /etc/alxconfig-ng/serial |
130 |
else |
else |
131 |
ALX_SERIAL=0 |
ALX_SERIAL=0 |
132 |
fi |
fi |