summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-10-12 15:09:08 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-10-12 15:09:08 +0200
commitba2128f0233c04aea1f5adc425938f78bdd7540e (patch)
treeb7c8828b736f02fd4c3c2a07ddd58902cd264d7e /scripts
parente06f4c789a2f53401f22d39ed1180967adbb6271 (diff)
downloadnetctl-ba2128f0233c04aea1f5adc425938f78bdd7540e.tar.gz
netctl-ba2128f0233c04aea1f5adc425938f78bdd7540e.tar.xz
Fix whitespace and quoting
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/netcfg-wpa_actiond8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/netcfg-wpa_actiond b/scripts/netcfg-wpa_actiond
index 3a6ec22..9e2264b 100755
--- a/scripts/netcfg-wpa_actiond
+++ b/scripts/netcfg-wpa_actiond
@@ -49,7 +49,7 @@ if [[ -n "$RFKILL" ]]; then # Enable radio if necessary
enable_rf "$interface" "$RFKILL" "$RFKILL_NAME" || exit $?
fi
-WPA_CONF="$(make_wpa_config_file $interface)"
+WPA_CONF="$(make_wpa_config_file "$interface")"
if [[ -n "${AUTO_PROFILES}" ]]; then
# At some point, this can be removed.
@@ -72,7 +72,7 @@ fi | while read profile; do
[[ -z "$SECURITY" ]] && SECURITY="none"
[[ $SECURITY == "wpa-config" ]] && exit 1
- printf "%s\n" "network={" "$(make_wpa_config)" "id_str=\"$profile\"" "}" >> $WPA_CONF
+ printf "%s\n" "network={" "$(make_wpa_config)" "id_str=\"$profile\"" "}" >> "$WPA_CONF"
)
done
@@ -83,8 +83,8 @@ WPA_OPTS="-W $WPA_OPTS"
# Kill any existing wpa_supplicant on this interface
stop_wpa "$interface" &> /dev/null
-if start_wpa $interface $WPA_CONF $WPA_DRIVER $WPA_OPTS; then
- if $AUTOWIFI -i ${interface} -P ${PIDFILE} -a ${ACTION_SCRIPT} ${EXTRA_AUTOWIFI_OPTIONS}; then
+if start_wpa "$interface" "$WPA_CONF" "$WPA_DRIVER" $WPA_OPTS; then
+ if $AUTOWIFI -i "$interface" -P "$PIDFILE" -a "$ACTION_SCRIPT" $EXTRA_AUTOWIFI_OPTIONS; then
exit 0
fi
fi