From 2e42a9ef238ef5c221eb389031d1430ee0918a00 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 7 Jun 2012 23:26:18 +0400 Subject: [PATCH] rc restart nscd --- sbin/network-profile.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/network-profile.sh b/sbin/network-profile.sh index e4a74c0..892c65e 100755 --- a/sbin/network-profile.sh +++ b/sbin/network-profile.sh @@ -60,7 +60,7 @@ elif [[ "$1" == "stop" ]]; then __net_stop elif [[ "$1" == "restart" ]]; then - sudo eselect rc nscd restart + sudo eselect rc restart nscd __net_restart elif [[ "$1" == "edit" && "$2" == "" ]]; then @@ -82,14 +82,14 @@ elif [[ "$1" == "new" && "$2" != "" && "$3" != "" ]]; then sudo cp -f /etc/conf.d/net.$2 /etc/conf.d/net.$3 && sudo $EDITOR /etc/conf.d/net.$3 __net_stop sudo rm -f /etc/conf.d/net && sudo ln -s net.$3 /etc/conf.d/net - sudo eselect rc nscd restart + sudo eselect rc restart nscd __net_restart else if [ -f /etc/conf.d/net.$1 ]; then __net_stop sudo rm -f /etc/conf.d/net && sudo ln -s net.$1 /etc/conf.d/net - sudo eselect rc nscd restart + sudo eselect rc restart nscd __net_restart else Usage