summaryrefslogtreecommitdiffstats
path: root/src/netcfg
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-05-07 00:23:34 +0200
committerJames Rayner <james@archlinux.org>2009-05-07 00:23:34 +0200
commitdd485367068c8451787045e14bc7ce8a1257135d (patch)
tree23a1a400056eec5fa589cb3cfd91345613b52c67 /src/netcfg
parent6d3e23a3418249d5787077c21cba52707e3a622a (diff)
downloadnetctl-dd485367068c8451787045e14bc7ce8a1257135d.tar.gz
netctl-dd485367068c8451787045e14bc7ce8a1257135d.tar.xz
Add reconnect option to netcfg and improve clean option
Diffstat (limited to 'src/netcfg')
-rw-r--r--src/netcfg7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/netcfg b/src/netcfg
index 816c043..05599c5 100644
--- a/src/netcfg
+++ b/src/netcfg
@@ -35,12 +35,14 @@ case $1 in
version;;
--help|-h)
usage;;
- -c|check-iface)
+ -c|check-iface|up)
CHECK="YES";
profile_up $2;;
clean)
rm /var/run/network/interfaces/* 2> /dev/null
rm /var/run/network/profiles/* 2> /dev/null
+ rm /var/run/network/suspend/* 2> /dev/null
+ rm /var/run/network/last_profile 2> /dev/null
killall wpa_supplicant 2> /dev/null
killall dhcpcd 2> /dev/null
;;
@@ -50,6 +52,9 @@ case $1 in
interface_down $2;;
-a|all-down)
all_down;;
+ -r|reconnect)
+ profile_down $2
+ profile_up $2;;
all-resume)
all_resume;;
all-suspend)