1 #!/bin/sh /etc/rc.common
5 pidfile
=/var
/run
/babeld.pid
9 config_get interfaces
"$cfg" interfaces
13 if [ -x /etc
/rc.d
/S71ahcpd
] ; 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
/sbin
/babeld
-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 babel ($pidfile still exists)."