Use yesno for more robustness
This commit is contained in:
parent
09c5e5d415
commit
5f37abddde
@ -28,7 +28,7 @@ atmclip_svcs_start() {
|
|||||||
einfo "First CLIP instance: starting ATM CLIP daemons"
|
einfo "First CLIP instance: starting ATM CLIP daemons"
|
||||||
eindent
|
eindent
|
||||||
|
|
||||||
if [ "${clip_full:-yes}" = "yes" ]; then
|
if yesno ${clip_full:-yes}; then
|
||||||
atmclip_svc_start atmsigd "Signaling" && \
|
atmclip_svc_start atmsigd "Signaling" && \
|
||||||
atmclip_svc_start ilmid "Integrated Local Management Interface" && \
|
atmclip_svc_start ilmid "Integrated Local Management Interface" && \
|
||||||
atmclip_svc_start atmarpd "Address Resolution Protocol"
|
atmclip_svc_start atmarpd "Address Resolution Protocol"
|
||||||
@ -58,7 +58,7 @@ atmclip_svcs_stop() {
|
|||||||
sync
|
sync
|
||||||
|
|
||||||
atmclip_svc_stop atmarpd "Address Resolution Protocol"
|
atmclip_svc_stop atmarpd "Address Resolution Protocol"
|
||||||
if [ "${clip_full:-yes}" = "yes" ]; then
|
if yesno ${clip_full:-yes}; then
|
||||||
atmclip_svc_stop ilmid "Integrated Local Management Interface"
|
atmclip_svc_stop ilmid "Integrated Local Management Interface"
|
||||||
atmclip_svc_stop atmsigd "Signaling"
|
atmclip_svc_stop atmsigd "Signaling"
|
||||||
fi
|
fi
|
||||||
@ -70,7 +70,7 @@ are_atmclip_svcs_running() {
|
|||||||
|
|
||||||
start-stop-daemon --quiet --test --stop --pidfile /var/run/atmarpd.pid || return 1
|
start-stop-daemon --quiet --test --stop --pidfile /var/run/atmarpd.pid || return 1
|
||||||
|
|
||||||
if [ "${clip_full:-yes}" = "yes" ]; then
|
if yesno ${clip_full:-yes}; then
|
||||||
start-stop-daemon --quiet --test --stop --pidfile /var/run/ilmid.pid || return 1
|
start-stop-daemon --quiet --test --stop --pidfile /var/run/ilmid.pid || return 1
|
||||||
start-stop-daemon --quiet --test --stop --pidfile /var/run/atmsigd.pid || return 1
|
start-stop-daemon --quiet --test --stop --pidfile /var/run/atmsigd.pid || return 1
|
||||||
fi
|
fi
|
||||||
|
@ -99,7 +99,7 @@ vlan_post_start() {
|
|||||||
|
|
||||||
# We may not want to start the vlan ourselves
|
# We may not want to start the vlan ourselves
|
||||||
eval s=\$vlan_start_${IFVAR}
|
eval s=\$vlan_start_${IFVAR}
|
||||||
[ "${s:-yes}" != "yes" ] && continue
|
yesno ${s:-yes} || continue
|
||||||
|
|
||||||
# We need to work out the interface name of our new vlan id
|
# We need to work out the interface name of our new vlan id
|
||||||
local ifname="$( \
|
local ifname="$( \
|
||||||
|
Loading…
Reference in New Issue
Block a user