We no longer need SVCNAME here
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user