diff options
author | James Rayner <james@archlinux.org> | 2009-05-07 00:23:34 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-05-07 00:23:34 +0200 |
commit | dd485367068c8451787045e14bc7ce8a1257135d (patch) | |
tree | 23a1a400056eec5fa589cb3cfd91345613b52c67 | |
parent | 6d3e23a3418249d5787077c21cba52707e3a622a (diff) | |
download | netctl-dd485367068c8451787045e14bc7ce8a1257135d.tar.gz netctl-dd485367068c8451787045e14bc7ce8a1257135d.tar.xz |
Add reconnect option to netcfg and improve clean option
-rw-r--r-- | src/netcfg | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |