From 5f37abddde55ee5ec2afb4e2b565326261bbc976 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 22 Nov 2007 13:31:19 +0000 Subject: Use yesno for more robustness --- net.Linux/clip.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net.Linux/clip.sh') diff --git a/net.Linux/clip.sh b/net.Linux/clip.sh index 771ec204..7c7ec7d4 100644 --- a/net.Linux/clip.sh +++ b/net.Linux/clip.sh @@ -28,7 +28,7 @@ atmclip_svcs_start() { einfo "First CLIP instance: starting ATM CLIP daemons" eindent - if [ "${clip_full:-yes}" = "yes" ]; then + if yesno ${clip_full:-yes}; then atmclip_svc_start atmsigd "Signaling" && \ atmclip_svc_start ilmid "Integrated Local Management Interface" && \ atmclip_svc_start atmarpd "Address Resolution Protocol" @@ -58,7 +58,7 @@ atmclip_svcs_stop() { sync 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 atmsigd "Signaling" fi @@ -70,7 +70,7 @@ are_atmclip_svcs_running() { 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/atmsigd.pid || return 1 fi -- cgit v1.2.3