1 #!/bin/sh /etc/rc.common
5 pidfile=/var/run/babel.pid
9 config_get interfaces "$cfg" interfaces
13 if [ -x /etc/init.d/ahcpd ] ; then
14 echo 'Not starting babel -- will be started by ahcpd.'
18 config_foreach babel_config babel
20 if [ -e $pidfile ] ; then
21 echo "$pidfile exists -- not starting babel." >&2
23 /usr/bin/babel -D -I $pidfile $interfaces
28 [ -e $pidfile ] && kill $(cat $pidfile)
29 [ -e $pidfile ] && sleep 2
30 [ -e $pidfile ] && sleep 4
31 [ -e $pidfile ] && echo "Failed to stop ahcpd ($pidfile still exists)."