From 09c5e5d415d5813f49d871dc0712212a92a695ed Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 22 Nov 2007 13:28:14 +0000 Subject: Use yesno for more robustness --- net/macchanger.sh | 2 +- net/wpa_supplicant.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'net') diff --git a/net/macchanger.sh b/net/macchanger.sh index 4febac27..c2dc27f4 100644 --- a/net/macchanger.sh +++ b/net/macchanger.sh @@ -31,7 +31,7 @@ _config_vars="$_config_vars mac" macchanger_pre_start() { # We don't change MAC addresses from background - ${IN_BACKGROUND} && return 0 + yesno ${IN_BACKGROUND} && return 0 local mac= opts= diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh index 1bdbb9c1..1955905e 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 -- cgit v1.2.3