Attempt to fix clip
This commit is contained in:
parent
52c28add45
commit
b0e3880bd4
@ -67,19 +67,17 @@ atmclip_svcs_stop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
are_atmclip_svcs_running() {
|
are_atmclip_svcs_running() {
|
||||||
is_daemon_running atmarpd || return 1
|
|
||||||
if [[ ${clip_full:-yes} == "yes" ]]; then
|
start-stop-daemon --test --stop --pidfile /var/run/atmarpd.pid || return 1
|
||||||
is_daemon_running ilmid || return 1
|
|
||||||
is_daemon_running atmsigd || return 1
|
if [ "${clip_full:-yes}" = "yes" ]; then
|
||||||
fi
|
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
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
atmarp() {
|
|
||||||
/usr/sbin/atmarp "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
clip_pre_start() {
|
clip_pre_start() {
|
||||||
eval $(_get_array "clip_${IFVAR}")
|
eval $(_get_array "clip_${IFVAR}")
|
||||||
[ -z "$@" ] && return 0
|
[ -z "$@" ] && return 0
|
||||||
@ -175,7 +173,7 @@ clip_pre_stop() {
|
|||||||
{
|
{
|
||||||
read left && \
|
read left && \
|
||||||
while read itf t encp idle ipaddr left ; do
|
while read itf t encp idle ipaddr left ; do
|
||||||
if [ "${itf}" = "${IFACE}" ]]; then
|
if [ "${itf}" = "${IFACE}" ]; then
|
||||||
ebegin "Removing PVC to ${ipaddr}"
|
ebegin "Removing PVC to ${ipaddr}"
|
||||||
atmarp -d "${ipaddr}"
|
atmarp -d "${ipaddr}"
|
||||||
eend $?
|
eend $?
|
||||||
|
Loading…
Reference in New Issue
Block a user