Package: rpld
Version: 1.8beta1-8
Severity: wishlist
Tags: patch
This patch binds rpld to the interface specified in /etc/default/rpld
by passing the -i option to rpld.
Cheers,
Shaun
diff -ur rpld-1.8beta1-/debian/init-default rpld-1.8beta1/debian/init-default
--- rpld-1.8beta1-/debian/init-default 2006-02-09 07:44:12.000000000 -0700
+++ rpld-1.8beta1/debian/init-default 2006-02-09 08:04:50.000000000 -0700
@@ -4,3 +4,4 @@
# Edit /etc/rpld.conf to fit your needs an uncomment the line below.
#START_RPLD=yes
+#INTERFACE=eth0
diff -ur rpld-1.8beta1-/debian/init.d rpld-1.8beta1/debian/init.d
--- rpld-1.8beta1-/debian/init.d 2006-02-09 08:03:25.000000000 -0700
+++ rpld-1.8beta1/debian/init.d 2006-02-09 08:06:28.000000000 -0700
@@ -25,12 +25,15 @@
echo "RPLD not configured - have a look at /etc/default/rpld"
exit 0
fi
+if [ -n "$INTERFACE" ]; then
+ INTERFACE="-i $INTERFACE"
+fi
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
- --exec $DAEMON
+ --exec $DAEMON -- $INTERFACE
echo "."
;;
stop)