summaryrefslogtreecommitdiff
path: root/net.Linux
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.Linux
parente31e930825b2e1d122460b42d1a52d1aa8c13f5f (diff)
downloadopenrc-09c5e5d415d5813f49d871dc0712212a92a695ed.tar.gz
openrc-09c5e5d415d5813f49d871dc0712212a92a695ed.tar.bz2
openrc-09c5e5d415d5813f49d871dc0712212a92a695ed.tar.xz
Use yesno for more robustness
Diffstat (limited to 'net.Linux')
-rw-r--r--net.Linux/ifplugd.sh4
-rw-r--r--net.Linux/iwconfig.sh4
-rw-r--r--net.Linux/netplugd.sh4
-rw-r--r--net.Linux/pppd.sh4
4 files changed, 8 insertions, 8 deletions
diff --git a/net.Linux/ifplugd.sh b/net.Linux/ifplugd.sh
index 23788a7..3c90f86 100644
--- a/net.Linux/ifplugd.sh
+++ b/net.Linux/ifplugd.sh
@@ -36,7 +36,7 @@ ifplugd_pre_start() {
local pidfile="/var/run/ifplugd.${IFACE}.pid" timeout= args=
# We don't start netplug if we're being called from the background
- ${IN_BACKGROUND} && return 0
+ yesno ${IN_BACKGROUND} && return 0
_exists || return 0
@@ -99,7 +99,7 @@ ifplugd_pre_start() {
}
ifplugd_stop() {
- ${IN_BACKGROUND} && return 0
+ yesno ${IN_BACKGROUND} && return 0
local pidfile="/var/run/ifplugd.${IFACE}.pid"
[ ! -e "${pidfile}" ] && return 0
diff --git a/net.Linux/iwconfig.sh b/net.Linux/iwconfig.sh
index 6aa4002..066f258 100644
--- a/net.Linux/iwconfig.sh
+++ b/net.Linux/iwconfig.sh
@@ -685,7 +685,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
@@ -750,7 +750,7 @@ iwconfig_pre_start() {
}
iwconfig_post_stop() {
- ${IN_BACKGROUND} && return 0
+ yesno ${IN_BACKGROUND} && return 0
_exists || return 0
iwconfig_defaults
iwconfig "${IFACE}" txpower off 2>/dev/null
diff --git a/net.Linux/netplugd.sh b/net.Linux/netplugd.sh
index 422bbf1..160c6a6 100644
--- a/net.Linux/netplugd.sh
+++ b/net.Linux/netplugd.sh
@@ -39,7 +39,7 @@ netplugd_pre_start() {
local pidfile="/var/run/netplugd-${IFACE}.pid" timeout=
# We don't start netplug if we're being called from the background
- ${IN_BACKGROUND} && return 0
+ yesno ${IN_BACKGROUND} && return 0
_exists || return 0
@@ -101,7 +101,7 @@ netplugd_pre_start() {
}
netplugd_stop() {
- ${IN_BACKGROUND} && return 0
+ yesno ${IN_BACKGROUND} && return 0
local pidfile="/var/run/netplugd-${IFACE}.pid"
[ ! -e "${pidfile}" ] && return 0
diff --git a/net.Linux/pppd.sh b/net.Linux/pppd.sh
index 71ffb18..de63dc9 100644
--- a/net.Linux/pppd.sh
+++ b/net.Linux/pppd.sh
@@ -45,7 +45,7 @@ pppd_pre_start() {
# Set our base metric
metric=4000
- if ${IN_BACKGROUND} ; then
+ if yesno ${IN_BACKGROUND}; then
local config=
eval config=\$config_${IFVAR}
# If no config for ppp then don't default to DHCP
@@ -245,7 +245,7 @@ pppd_start() {
}
pppd_stop() {
- ${IN_BACKGROUND} && return 0
+ yesno ${IN_BACKGROUND} && return 0
local pidfile="/var/run/ppp-${IFACE}.pid"
[ ! -s "${pidfile}" ] && return 0