rc restart nscd
This commit is contained in:
parent
6bd6cdcdf2
commit
2e42a9ef23
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue