Magellan Linux

Diff of /alx-src/branches/alxconf-060/functions/config_network.sh

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

revision 218 by niro, Tue Mar 8 20:29:46 2005 UTC revision 255 by niro, Thu Apr 14 21:24:14 2005 UTC
# Line 1  Line 1 
1    # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_network.sh,v 1.6 2005-04-14 21:24:14 niro Exp $
2  # configures networkin on the host via mysql db settings  # configures networkin on the host via mysql db settings
3    
 #delme settings  
 SQL_USER=alx_install  
 SQL_PASS=@lx  
 SQL_HOST=128.20.41.110  
 SQL_DB=alx_web  
 ALX_SERIAL=10  
   
4  get_network_settings()  get_network_settings()
5  {  {
6   local x i all DB_NETWORK   local x i all DB_NETWORK
# Line 52  config_networking() Line 46  config_networking()
46   get_network_settings   get_network_settings
47    
48   # debug   # debug
49   echo "0: ${ALX_HOSTNAME}"  # echo "0: ${ALX_HOSTNAME}"
50   echo "1: ${ALX_MODULE}"  # echo "1: ${ALX_MODULE}"
51   echo "2: ${ALX_DOMAIN}"  # echo "2: ${ALX_DOMAIN}"
52   echo "3: ${ALX_NETWORKING}"  # echo "3: ${ALX_NETWORKING}"
53   echo "4: ${ALX_IP}"  # echo "4: ${ALX_IP}"
54   echo "5: ${ALX_NETMASK}"  # echo "5: ${ALX_NETMASK}"
55   echo "6: ${ALX_DNS}"  # echo "6: ${ALX_DNS}"
56   echo "7: ${ALX_GATEWAY}"  # echo "7: ${ALX_GATEWAY}"
57   echo "8: ${ALX_BROADCAST}"  # echo "8: ${ALX_BROADCAST}"
58    
59   # hostname && hosts   # hostname && hosts
60   echo "${ALX_HOSTNAME}" > /etc/hostname   echo "${ALX_HOSTNAME}" > /etc/hostname
61   echo -e "127.0.0.1\t${ALX_HOSTNAME}.${ALX_DOMAIN}\t${ALX_HOSTNAME}" > /etc/hosts   echo -e "127.0.0.1\tlocalhost.${ALX_DOMAIN}\tlocalhost\t${ALX_HOSTNAME}" > /etc/hosts
62    
63   # network devices   # network devices
64    
# Line 115  config_networking() Line 109  config_networking()
109   unset ALX_GATEWAY   unset ALX_GATEWAY
110   unset ALX_BROADCAST   unset ALX_BROADCAST
111  }  }
112    

Legend:
Removed from v.218  
changed lines
  Added in v.255