From 57154bd0ee7056e29d4ebe4df12b477d016c95a5 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Tue, 29 Sep 2009 09:53:36 +0200 Subject: wpa_actiond-action: Properly quote arguments of the script, they might contain spaces (especially $profile) --- wpa_actiond/netcfg-wpa_actiond-action | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'wpa_actiond/netcfg-wpa_actiond-action') diff --git a/wpa_actiond/netcfg-wpa_actiond-action b/wpa_actiond/netcfg-wpa_actiond-action index f273b3b..3547fef 100755 --- a/wpa_actiond/netcfg-wpa_actiond-action +++ b/wpa_actiond/netcfg-wpa_actiond-action @@ -1,17 +1,17 @@ #! /bin/bash -interface=$1 -ssid=$2 -profile=$3 -action=$4 +interface="$1" +ssid="$2" +profile="$3" +action="$4" . /usr/lib/network/network -[[ $profile ]] && load_profile "$profile" +[[ "$profile" ]] && load_profile "$profile" case $action in CONNECT) if [[ -z $profile ]]; then - dhcpcd $interface + dhcpcd "$interface" exit $? fi if ! $CONN_DIR/ethernet up "$profile"; then @@ -28,7 +28,7 @@ case $action in ;; DISCONNECT) if [[ -z $profile ]]; then - dhcpcd -k $interface + dhcpcd -k "$interface" exit $? fi if ! ( eval $PRE_DOWN ); then # JP: sandbox the eval -- cgit v1.2.3-24-g4f1b