Magellan Linux

Diff of /alx-src/trunk/alxconfig-ng/init.d/alxsetstate

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 273 by niro, Tue Apr 12 20:46:52 2005 UTC revision 274 by niro, Wed May 11 12:25:39 2005 UTC
# Line 9  Line 9 
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
# Line 113  set_current_network_state(){ Line 113  set_current_network_state(){
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    
# Line 144  case $1 in Line 147  case $1 in
147   *)   *)
148   echo "Usage: $0 {start|stop} ..."   echo "Usage: $0 {start|stop} ..."
149   ;;   ;;
 esac  
150    esac

Legend:
Removed from v.273  
changed lines
  Added in v.274