aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-10 16:25:29 +0000
committerRoy Marples <roy@marples.name>2007-12-10 16:25:29 +0000
commit7a18054fbed634616c925135b03536f1b9492e6e (patch)
tree33d0f113197f361e463f54164cb8a752a59fca6e /net
parent159fc8b4adf4afa56bd6e0483817903923f6a64e (diff)
Only configure SSID if we are running on a wireless interface.
Diffstat (limited to 'net')
-rw-r--r--net/wpa_supplicant.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh
index e235573d..7daa2c59 100644
--- a/net/wpa_supplicant.sh
+++ b/net/wpa_supplicant.sh
@@ -63,7 +63,7 @@ _get_ap_mac_address() {
fi
wpa_supplicant_pre_start() {
- local opts= cfgfile= ctrl_dir=
+ local opts= cfgfile= ctrl_dir= wireless=true
local wpas=/usr/sbin/wpa_supplicant wpac=/usr/bin/wpa_cli
if [ ! -x "${wpas}" ]; then
@@ -74,14 +74,14 @@ wpa_supplicant_pre_start() {
eval opts=\$wpa_supplicant_${IFVAR}
case " ${opts} " in
- *" -Dwired "*);;
+ *" -Dwired "*) wireless=false;;
*) _is_wireless || return 0;;
esac
# We don't configure wireless if we're being called from
# the background unless we're not currently running
if yesno ${IN_BACKGROUND}; then
- if service_started_daemon "${SVCNAME}" "${wpas}"; then
+ if ${wireless} && service_started_daemon "${SVCNAME}" "${wpas}"; then
SSID=$(_get_ssid "${IFACE}")
SSIDVAR=$(_shell_var "${SSID}")
save_options "SSID" "${SSID}"