From b0e3880bd41fcfc6cfaca51c71b85a7275a17a47 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 23 Apr 2007 07:54:07 +0000 Subject: Attempt to fix clip --- net.Linux/clip.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/net.Linux/clip.sh b/net.Linux/clip.sh index d3ec4fd8..d3292853 100644 --- a/net.Linux/clip.sh +++ b/net.Linux/clip.sh @@ -67,17 +67,15 @@ atmclip_svcs_stop() { } are_atmclip_svcs_running() { - is_daemon_running atmarpd || return 1 - if [[ ${clip_full:-yes} == "yes" ]]; then - is_daemon_running ilmid || return 1 - is_daemon_running atmsigd || return 1 - fi - return 0 -} + start-stop-daemon --test --stop --pidfile /var/run/atmarpd.pid || return 1 -atmarp() { - /usr/sbin/atmarp "$@" + if [ "${clip_full:-yes}" = "yes" ]; then + start-stop-daemon --test --stop --pidfile /var/run/ilmid.pid || return 1 + start-stop-daemon --test --stop --pidfile /var/run/atmsigd.pid || return 1 + fi + + return 0 } clip_pre_start() { @@ -175,7 +173,7 @@ clip_pre_stop() { { read left && \ while read itf t encp idle ipaddr left ; do - if [ "${itf}" = "${IFACE}" ]]; then + if [ "${itf}" = "${IFACE}" ]; then ebegin "Removing PVC to ${ipaddr}" atmarp -d "${ipaddr}" eend $? -- cgit v1.2.3