summaryrefslogtreecommitdiff
path: root/net.BSD
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.BSD
parente31e930825b2e1d122460b42d1a52d1aa8c13f5f (diff)
downloadopenrc-09c5e5d415d5813f49d871dc0712212a92a695ed.tar.gz
openrc-09c5e5d415d5813f49d871dc0712212a92a695ed.tar.bz2
openrc-09c5e5d415d5813f49d871dc0712212a92a695ed.tar.xz
Use yesno for more robustness
Diffstat (limited to 'net.BSD')
-rw-r--r--net.BSD/iwconfig.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/net.BSD/iwconfig.sh b/net.BSD/iwconfig.sh
index 9825464..182bc47 100644
--- a/net.BSD/iwconfig.sh
+++ b/net.BSD/iwconfig.sh
@@ -554,7 +554,7 @@ iwconfig_configure() {
iwconfig_pre_start() {
# We don't configure wireless if we're being called from
# the background
- ${IN_BACKGROUND} && return 0
+ yesno ${IN_BACKGROUND} && return 0
save_options "SSID" ""
_exists || return 0
@@ -586,7 +586,7 @@ iwconfig_pre_start() {
}
iwconfig_post_stop() {
- ${IN_BACKGROUND} && return 0
+ yesno ${IN_BACKGROUND} && return 0
_is_wireless || return 0
iwconfig_defaults
#iwconfig "${IFACE}" txpower 0 2>/dev/null