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 472 by niro, Thu Jun 5 19:15:05 2008 UTC revision 473 by niro, Fri Jun 6 23:21:49 2008 UTC
# Line 1  Line 1 
1  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.12 2008-06-05 19:15:05 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_network.sh,v 1.13 2008-06-06 23:20:16 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 12  config_networking() Line 12  config_networking()
12   local iface   local iface
13    
14   # retrieve informations about hostname and co   # retrieve informations about hostname and co
15   evaluate_table cfg_network   evaluate_table_xml cfg_network
16    
17   # configure hostname and domain settings:   # configure hostname and domain settings:
18   echo "${cfg_network_hostname}" > /etc/hostname   echo "${cfg_network_hostname}" > /etc/hostname
# Line 36  config_networking() Line 36  config_networking()
36   :> /etc/conf.d/net.${iface}   :> /etc/conf.d/net.${iface}
37    
38   # retrieve information from mysql   # retrieve information from mysql
39   evaluate_table cfg_interfaces "where serial='${ALX_SERIAL}' and iface='${iface}'"   evaluate_table_xml cfg_interfaces "where serial='${ALX_SERIAL}' and iface='${iface}'"
40    
41   if [[ ${iface} = ${cfg_network_default_iface} ]]   if [[ ${iface} = ${cfg_network_default_iface} ]]
42   then   then

Legend:
Removed from v.472  
changed lines
  Added in v.473