diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2012-03-12 16:01:43 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-03-12 16:01:43 +0100 |
commit | 94ae8b1ccd08b7d0b2408db5b2054dee53413166 (patch) | |
tree | 534008d264f6c2b15b2431d5d20ca56f0e4b8c07 /scripts/netcfg-wpa_actiond | |
parent | 1a6cc347550cfde03be9f3155240b8d0e60e3e39 (diff) | |
download | netctl-94ae8b1ccd08b7d0b2408db5b2054dee53413166.tar.gz netctl-94ae8b1ccd08b7d0b2408db5b2054dee53413166.tar.xz |
Rename -i parameter to -D
-i is not a very cool parameter for downing an interface. Change it to -D so that it mirrors -R in the sense that a capital is used for interface-based actions.
The old behaviour is kept (undocumented) for backward compatibility.
Also a typo (iface-recont should have been iface-recon) is fixed.
Lastly some restrictions on profile naming are included in the documentation. The "should not start with '@'" is only for usage with net-profiles.
Diffstat (limited to 'scripts/netcfg-wpa_actiond')
-rwxr-xr-x | scripts/netcfg-wpa_actiond | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/netcfg-wpa_actiond b/scripts/netcfg-wpa_actiond index f276ab2..43f7183 100755 --- a/scripts/netcfg-wpa_actiond +++ b/scripts/netcfg-wpa_actiond @@ -18,7 +18,7 @@ case $1 in [[ -z $2 ]] && echo "Please specify an interface to stop" && exit 1 interface=$2 [[ -f "$IFACE_DIR/$interface" ]] && source "$IFACE_DIR/$interface" - netcfg -i "$interface" + netcfg -D "$interface" stop_wpa "$interface" kill $(< "/run/wpa_actiond_${2}.pid") # only try to disable software rfkill switches (FS#25514) @@ -43,7 +43,7 @@ fi [[ -f "$IFACE_DIR/$interface" ]] && source "$IFACE_DIR/$interface" if [[ -f "$CONN_DIR/interfaces/$interface" ]]; then - netcfg -i "$interface" + netcfg -D "$interface" fi if [[ -n "$RFKILL" ]]; then # Enable radio if necessary |