1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2007 OpenWrt.org
4 # version 20090401 jhalfmoon
7 PATH
=/usr
/local
/sbin
:/usr
/local
/bin
:/sbin
:/bin
:/usr
/sbin
:/usr
/bin
10 DESC
="Reverse DNS wall"
15 echo "Starting $DESC: $NAME"
17 config_foreach get_userids global
20 ln -fs /etc
/rbldns
/data
$ROOT/data
23 chown
-R $UID:$GID $ROOT
24 config_foreach start_daemon rbldns
29 config_get UID
"$cfg" runasuser
30 config_get GID
"$cfg" runasgroup
37 config_get logging
"$cfg" logging
38 config_get iface
"$cfg" interface
39 config_get BASE
"$cfg" base
40 # Unset BASE if it is empty
41 [ -z $BASE ] && export -n BASE
42 # Translate listening interfaces to ip addresses
45 config_get IP
"$iface" ipaddr
47 if [ "$DEBUG" == 1 ] ; then
49 elif [ "$logging" == '1' ] ; then
50 $DAEMON 2>&1 | logger
-p local1.info
-t $NAME &
52 $DAEMON > /dev
/null
2>&1 &
57 echo -n "Stopping $DESC: $NAME"
58 kill `pidof $NAME|sed "s/$$//g"` > /dev
/null
2>&1
63 echo "Restarting $DESC: $NAME... "