summaryrefslogtreecommitdiff
path: root/net/wpa_supplicant.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-22 13:28:14 +0000
committerRoy Marples <roy@marples.name>2007-11-22 13:28:14 +0000
commit09c5e5d415d5813f49d871dc0712212a92a695ed (patch)
treede87f98c3bb02e8cd436ddd8bcf99a2a4d51a65d /net/wpa_supplicant.sh
parente31e930825b2e1d122460b42d1a52d1aa8c13f5f (diff)
downloadopenrc-09c5e5d415d5813f49d871dc0712212a92a695ed.tar.gz
openrc-09c5e5d415d5813f49d871dc0712212a92a695ed.tar.bz2
openrc-09c5e5d415d5813f49d871dc0712212a92a695ed.tar.xz
Use yesno for more robustness
Diffstat (limited to 'net/wpa_supplicant.sh')
-rw-r--r--net/wpa_supplicant.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh
index 1bdbb9c..1955905 100644
--- a/net/wpa_supplicant.sh
+++ b/net/wpa_supplicant.sh
@@ -80,7 +80,7 @@ wpa_supplicant_pre_start() {
# We don't configure wireless if we're being called from
# the background unless we're not currently running
- if [ "${IN_BACKGROUND}" = "true" ] ; then
+ if yesno ${IN_BACKGROUND}; then
if service_started_daemon "${SVCNAME}" /sbin/wpa_supplicant ; then
SSID=$(_get_ssid "${IFACE}")
SSIDVAR=$(_shell_var "${SSID}")
@@ -186,7 +186,7 @@ wpa_supplicant_post_stop() {
wpac=/bin/wpa_cli
fi
- if [ "${IN_BACKGROUND}" = "true" ] ; then
+ if yesno "${IN_BACKGROUND}"; then
# Only stop wpa_supplicant if it's not the controlling daemon
! service_started_daemon "${SVCNAME}" "${wpas}" 1
fi