Magellan Linux

Diff of /alx-src/trunk/tinyalxconfig-ng/functions/config_network.sh

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

revision 457 by niro, Thu Jun 5 19:13:31 2008 UTC revision 458 by niro, Thu Jun 5 19:15:05 2008 UTC
# Line 1  Line 1 
1  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.11 2008-06-05 19:13:31 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.12 2008-06-05 19:15:05 niro Exp $
2  # configures networkin on the host via mysql db settings  # configures networkin on the host via mysql db settings
3    
4  # needs exported iface variable!  # needs exported iface variable!
# Line 27  config_networking() Line 27  config_networking()
27   # remove all old nics and modules configs   # remove all old nics and modules configs
28   find /etc/conf.d -type f -name 'net.*' | xargs rm   find /etc/conf.d -type f -name 'net.*' | xargs rm
29    
  # update default iface (is this needed anymore?)  
  [ ! -d ${SETTINGSPATH} ] && install -d ${SETTINGSPATH}  
  echo "${cfg_network_default_iface}" > ${SETTINGSPATH}/default_iface  
   
30   # configure all available interfaces but activate only the default_iface!   # configure all available interfaces but activate only the default_iface!
31   iface_list=$(mysqldo "select iface from cfg_interfaces where serial='${ALX_SERIAL}'")   iface_list=$(mysqldo "select iface from cfg_interfaces where serial='${ALX_SERIAL}'")
32    

Legend:
Removed from v.457  
changed lines
  Added in v.458