From 6bd6cdcdf2eb3a28ddda4bb5611d7ccd5b6c07dc Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 7 Jun 2012 23:22:13 +0400 Subject: [PATCH] rc 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 6859ffa..e4a74c0 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 nscd restart + sudo eselect rc nscd restart __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 nscd restart + sudo eselect rc nscd restart __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 nscd restart + sudo eselect rc nscd restart __net_restart else Usage