Magellan Linux

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

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

revision 305 by niro, Wed Aug 17 21:20:12 2005 UTC revision 306 by niro, Sun Aug 28 19:30:25 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.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
# Line 51  set_current_network_state(){ Line 51  set_current_network_state(){
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

Legend:
Removed from v.305  
changed lines
  Added in v.306