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 2269 by niro, Tue Jan 14 10:34:57 2014 UTC revision 2667 by niro, Fri Dec 4 11:01:02 2015 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3  provide basic-networking  provide basic-networking
4  require basic-system  require basic-system basic-init
5    
6  help_network_hostname()  help_network_hostname()
7  {  {
# Line 56  set_network_hostname() Line 56  set_network_hostname()
56   addconfig "ff02::3 ip6-allhosts"   addconfig "ff02::3 ip6-allhosts"
57    
58   # 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
59   if [[ ! -z $(pidof X) ]]   if [[ ! -z $(pidof X) ]]  || [[ -n $(pidof Xorg) ]]
60   then   then
61   socket="${value}/unix${MCORE_XORG_DISPLAY}"   socket="${value}/unix${MCORE_XORG_DISPLAY}"
62   cookie=$(x11runas "xauth list | sed 's:.*\ \(.*\):\1:'")   cookie=$(x11runas "xauth list | sed 's:.*\ \(.*\):\1:'")
# Line 140  set_network_iface() Line 140  set_network_iface()
140   then   then
141   if [[ ! -z $(ip addr | grep "${iface}.*UP.*") ]]   if [[ ! -z $(ip addr | grep "${iface}.*UP.*") ]]
142   then   then
143   set_system_service restart network "${iface}"   ${MCORE_LIBDIR}/mcore-system-service --restart --service network "${iface}"
144   else   else
145   set_system_service start network "${iface}"   ${MCORE_LIBDIR}/mcore-system-service --start --service network "${iface}"
146   fi   fi
147   else   else
148   case ${networking} in   case ${networking} in

Legend:
Removed from v.2269  
changed lines
  Added in v.2667