--- mcore-src/trunk/mcore-tools/src/modules/network/network.client.class.in 2015/12/04 11:03:31 2668 +++ mcore-src/trunk/mcore-tools/src/modules/network/network.client.class.in 2015/12/04 11:04:48 2669 @@ -35,6 +35,7 @@ local socket local cookie local authtype + local networksvc [[ -z ${value} ]] && help_network_hostname && return 1 @@ -64,6 +65,15 @@ # add the new hostname to the xauthority file x11runas "xauth add ${socket} ${authtype} ${cookie}" fi + + # reload network configuration to inform a dhcp server about the changed hostname + if is_provided systemd + then + networksvc="systemd-networkd" + elif is_provided sysvinit + networksvc="network" + fi + ${MCORE_LIBDIR}/mcore-system-service --restart --service "${service}" ;; } help_network_iface()