From 8d1c5e8ec6b637015e84bbb154ece9065c59f1c5 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Mon, 27 Feb 2012 17:11:21 +0100 Subject: Reconnect syntax for interfaces (FS#28196) It is now possible to reconnect based on the name of the interface. --- scripts/netcfg | 3 +++ scripts/netcfg-wpa_actiond | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/netcfg b/scripts/netcfg index 9d341e5..1f734c7 100755 --- a/scripts/netcfg +++ b/scripts/netcfg @@ -24,6 +24,7 @@ usage() echo "-i, iface-down Take down profile active on specified interface" echo "-l, list List all available profiles" echo "-r, reconnect Disconnect and reconnect specified profile" + echo "-R, iface-recon Reconnect profile active on specified interface" echo "-u, up Start specified profile" echo "-v, version Output version information and exit" echo " all-resume Resume previously suspended profiles and reconnect them" @@ -80,6 +81,8 @@ case "$1" in -r|reconnect) profile_down "$2" profile_up "$2";; + -R|iface-recont) + interface_reconnect "$2";; all-resume) all_resume;; all-suspend) diff --git a/scripts/netcfg-wpa_actiond b/scripts/netcfg-wpa_actiond index bb144c3..2e402df 100755 --- a/scripts/netcfg-wpa_actiond +++ b/scripts/netcfg-wpa_actiond @@ -67,9 +67,7 @@ fi | while read profile; do [[ -z "$SECURITY" ]] && SECURITY="none" [[ $SECURITY == "wpa-config" ]] && exit 1 - config=$(make_wpa_config) - - echo -e "network={ \n$config \nid_str=\"$profile\" \n}" >> $WPA_CONF + echo -e "network={ \n$(make_wpa_config) \nid_str=\"$profile\" \n}" >> $WPA_CONF ) done -- cgit v1.2.3-24-g4f1b