From a2e61f79d4f588be03c9e68665525d316e06923c Mon Sep 17 00:00:00 2001 From: mark hellewell Date: Wed, 16 Jan 2013 00:20:04 +1100 Subject: [PATCH] added -S option to netcfg script -S will make other profiles inactive in favour of the one specified --- scripts/netcfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/netcfg b/scripts/netcfg index f1d79e8..c5b2144 100755 --- a/scripts/netcfg +++ b/scripts/netcfg @@ -26,6 +26,7 @@ Arguments: -l, list List all available profiles -r, reconnect Disconnect and reconnect specified profile -R, iface-recon Reconnect profile active on specified interface +-S, swap Take all active profiles down, and start specified profile -u, up Start specified profile -v, version Output version information and exit all-resume Resume previously suspended profiles and reconnect them @@ -76,6 +77,9 @@ case "$1" in profile_up "$2";; -R|iface-recon) interface_reconnect "$2";; + -S|swap) + all_down + profile_up "$2";; all-resume) all_resume;; all-suspend) -- 1.8.1.1