9 |
#%before: |
#%before: |
10 |
#%after: |
#%after: |
11 |
|
|
12 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsetstate,v 1.5 2005-04-12 20:45:55 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsetstate,v 1.6 2005-05-11 12:25:39 niro Exp $ |
13 |
|
|
14 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
15 |
source $rc_functions |
source $rc_functions |
113 |
# nice name is alx_connected_state or sth like this |
# nice name is alx_connected_state or sth like this |
114 |
unset_alx_connected(){ |
unset_alx_connected(){ |
115 |
local SQL_OPTS |
local SQL_OPTS |
116 |
|
local CUR_MAC |
117 |
|
|
118 |
|
CUR_MAC=$(/sbin/ifconfig eth0 | grep HWaddr | cut -d ' ' -f11) |
119 |
|
|
120 |
echo -e ${COLMAGENTA}"Unregister system from database"${COLDEFAULT} |
echo -e ${COLMAGENTA}"Unregister system from database"${COLDEFAULT} |
121 |
|
|
147 |
*) |
*) |
148 |
echo "Usage: $0 {start|stop} ..." |
echo "Usage: $0 {start|stop} ..." |
149 |
;; |
;; |
|
esac |
|
150 |
|
esac |