Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/network/network.client.class.in

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

revision 1351 by niro, Thu Feb 17 21:44:18 2011 UTC revision 1605 by niro, Fri Mar 4 16:23:17 2011 UTC
# Line 34  set_network_hostname() Line 34  set_network_hostname()
34   addconfig "${value}"   addconfig "${value}"
35   hostname "${value}"   hostname "${value}"
36    
37     # update hosts file
38     CONFIG="/etc/hosts"
39     clearconfig
40     addconfig "127.0.0.1 localhost ${value}"
41     # add ipv6 defaults
42     addconfig "::1 ip6-localhost ip6-loopback"
43     addconfig "fe00::0 ip6-localnet"
44     addconfig "ff00::0 ip6-mcastprefix"
45     addconfig "ff02::1 ip6-allnodes"
46     addconfig "ff02::2 ip6-allrouters"
47     addconfig "ff02::3 ip6-allhosts"
48    
49   # check for running x11 and recreate the xauth cookie with the correct hostname   # check for running x11 and recreate the xauth cookie with the correct hostname
50   if [[ ! -z $(pidof X) ]]   if [[ ! -z $(pidof X) ]]
51   then   then

Legend:
Removed from v.1351  
changed lines
  Added in v.1605