* Use "initctl restart".
svn path=/nixos/trunk/; revision=25249
This commit is contained in:
parent
70402c9397
commit
c65c03099f
|
@ -114,17 +114,8 @@ in
|
||||||
powerManagement.resumeCommands =
|
powerManagement.resumeCommands =
|
||||||
''
|
''
|
||||||
export PATH=${config.system.build.upstart}/sbin:$PATH
|
export PATH=${config.system.build.upstart}/sbin:$PATH
|
||||||
|
initctl restart wpa_supplicant
|
||||||
restart() {
|
initctl restart dhclient
|
||||||
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
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue