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 |
{ |
{ |
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:'") |
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 |