summaryrefslogtreecommitdiff
path: root/net.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-18 17:59:29 +0000
committerRoy Marples <roy@marples.name>2007-12-18 17:59:29 +0000
commit437363a3449423173bc94746a122fbf3b4cf254c (patch)
tree66653de57209cdebdede01c60eea48996cf373d2 /net.Linux
parentc556731ad317a4a1d02e6ded366ccb0dd2d15806 (diff)
downloadopenrc-437363a3449423173bc94746a122fbf3b4cf254c.tar.gz
openrc-437363a3449423173bc94746a122fbf3b4cf254c.tar.bz2
openrc-437363a3449423173bc94746a122fbf3b4cf254c.tar.xz
We no longer need SVCNAME here
Diffstat (limited to 'net.Linux')
-rw-r--r--net.Linux/ifplugd.sh4
-rw-r--r--net.Linux/netplugd.sh4
-rw-r--r--net.Linux/pppd.sh4
3 files changed, 6 insertions, 6 deletions
diff --git a/net.Linux/ifplugd.sh b/net.Linux/ifplugd.sh
index f6e3260..e4600b7 100644
--- a/net.Linux/ifplugd.sh
+++ b/net.Linux/ifplugd.sh
@@ -61,7 +61,7 @@ ifplugd_pre_start() {
eval args=\$ifplugd_${IFVAR}
# Mark the us as inactive so netplug can restart us
- mark_service_inactive "${SVCNAME}"
+ mark_service_inactive
# Start ifplugd
eval start-stop-daemon --start --exec /usr/sbin/ifplugd \
@@ -83,7 +83,7 @@ ifplugd_pre_start() {
local i=0
while true; do
- if service_started "${SVCNAME}"; then
+ if service_started; then
_show_address
exit 0
fi
diff --git a/net.Linux/netplugd.sh b/net.Linux/netplugd.sh
index 0be5e93..24539b1 100644
--- a/net.Linux/netplugd.sh
+++ b/net.Linux/netplugd.sh
@@ -62,7 +62,7 @@ netplugd_pre_start() {
ebegin "Starting netplug on" "${IFACE}"
# Mark the us as inactive so netplug can restart us
- mark_service_inactive "${SVCNAME}"
+ mark_service_inactive
# Start netplug
start-stop-daemon --start --exec /sbin/netplugd \
@@ -85,7 +85,7 @@ netplugd_pre_start() {
local i=0
while true; do
- if service_started "${SVCNAME}"; then
+ if service_started; then
_show_address
exit 0
fi
diff --git a/net.Linux/pppd.sh b/net.Linux/pppd.sh
index d5db153..510a63a 100644
--- a/net.Linux/pppd.sh
+++ b/net.Linux/pppd.sh
@@ -213,7 +213,7 @@ pppd_pre_start() {
[ "${insert_link_in_opts}" = "0" ] || opts="${link} ${opts}"
ebegin "Starting pppd in ${IFACE}"
- mark_service_inactive "${SVCNAME}"
+ mark_service_inactive
if [ -n "${username}" ] \
&& [ -n "${password}" -o -z "${passwordset}" ]; then
printf "%s" "${password}" | \
@@ -225,7 +225,7 @@ pppd_pre_start() {
fi
if ! eend $? "Failed to start PPP"; then
- mark_service_stopped "net.${IFACE}"
+ mark_service_stopped
return 1
fi