From c65c03099f9ce1678d96bb8503fac7307411ccdf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 23 Dec 2010 11:00:20 +0000 Subject: [PATCH] * Use "initctl restart". svn path=/nixos/trunk/; revision=25249 --- modules/services/networking/dhclient.nix | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/modules/services/networking/dhclient.nix b/modules/services/networking/dhclient.nix index 7d45350fe6b..52612ee403b 100644 --- a/modules/services/networking/dhclient.nix +++ b/modules/services/networking/dhclient.nix @@ -114,17 +114,8 @@ in powerManagement.resumeCommands = '' export PATH=${config.system.build.upstart}/sbin:$PATH - - restart() { - local job="$1" - if initctl status "$job" 2> /dev/null | grep -q 'running'; then - initctl stop "$job" - initctl start "$job" - fi - } - - restart wpa_supplicant - restart dhclient + initctl restart wpa_supplicant + initctl restart dhclient ''; };