Magellan Linux

Diff of /alx-src/trunk/tinyalxconfig-ng/init.d/alxsettings

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

revision 386 by niro, Wed Jun 4 16:47:56 2008 UTC revision 387 by niro, Wed Jun 4 16:52:25 2008 UTC
# Line 11  Line 11 
11  #%before:  #%before:
12  #%after:  #%after:
13    
14  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/init.d/alxsettings,v 1.1 2008-06-04 16:47:56 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/init.d/alxsettings,v 1.2 2008-06-04 16:52:25 niro Exp $
15    
16  # checks first if the client was already configured and if it has an valid serial  # checks first if the client was already configured and if it has an valid serial
17  # if not it runs the autoconfiguration script  # if not it runs the autoconfiguration script
# Line 644  import_settings_local() Line 644  import_settings_local()
644  # start|stop  # start|stop
645  preliminary_network()  preliminary_network()
646  {  {
  local module  
   
  if [ -f /etc/alxconfig-ng/state/configured ]  
  then  
  # compat for old clients  
  if [ -f ${SETTINGSPATH}/modules ]  
  then  
  # get module name  
  module=$(cat ${SETTINGSPATH}/modules)  
  modprobe ${module}  
  fi  
  else  
  # vars used by hwdetect  
  local NETCARD_FULLNAME NETCARD_DRIVER MOUSE_FULLNAME MOUSE_DEVICE SOUND_FULLNAME  
  local SOUND_DRIVER XSERVER XMODULE XDESC FLOPPY_FULLNAME FLOPPY_DEVICE FLOPPY_DRIVER  
   
  # get setting from hwdetect  
  source /etc/sysconfig/hwsetup/knoppix  
  modprobe ${NETCARD_DRIVER}  
  fi  
   
647   case $1 in   case $1 in
648   start)   start)
649   # keeping like always safe:   # keeping like always safe:

Legend:
Removed from v.386  
changed lines
  Added in v.387