rc restart nscd

This commit is contained in:
Kolan Sh 2012-06-07 23:26:18 +04:00
parent 6bd6cdcdf2
commit 2e42a9ef23
1 changed files with 3 additions and 3 deletions

View File

@ -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