master
Kolan Sh 11 years ago
parent 1500b26562
commit 6bd6cdcdf2
  1. 6
      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

Loading…
Cancel
Save