Package: radvd
Version: 1:1.8-1.2
Followup-For: Bug #564208

Here is a patch for this.
diff -u radvd-1.8/debian/radvd.init radvd-1.8/debian/radvd.init
--- radvd-1.8/debian/radvd.init
+++ radvd-1.8/debian/radvd.init
@@ -23,6 +23,8 @@
 
 set -e
 
+. /lib/lsb/init-functions
+
 # Check for IPv6 support in kernel
 if [ "$(uname -s)" != "GNU/kFreeBSD" ]; then                                                            
   if test \! -e /proc/sys/net/ipv6; then
@@ -79,9 +81,12 @@
 	invoke-rc.d $NAME stop
 	invoke-rc.d $NAME start
 	;;
+  status)
+	status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+	;;
   *)
 	N=/etc/init.d/$NAME
-	echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+	echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2
 	exit 1
 	;;
 esac
diff -u radvd-1.8/debian/changelog radvd-1.8/debian/changelog
--- radvd-1.8/debian/changelog
+++ radvd-1.8/debian/changelog
@@ -1,3 +1,9 @@
+radvd (1:1.8-1.3) UNRELEASED; urgency=low
+
+  * Added support for "status" action to init script
+
+ -- Peter Eisentraut <[email protected]>  Fri, 21 Oct 2011 21:43:07 +0300
+
 radvd (1:1.8-1.2) unstable; urgency=high
 
   * Non-maintainer upload by the Security Team.
diff -u radvd-1.8/debian/control radvd-1.8/debian/control
--- radvd-1.8/debian/control
+++ radvd-1.8/debian/control
@@ -7,7 +7,7 @@
 
 Package: radvd
 Architecture: any
-Depends: ${shlibs:Depends}, adduser, ${misc:Depends}
+Depends: ${shlibs:Depends}, adduser, ${misc:Depends}, lsb-base
 Description: Router Advertisement Daemon
  IPv6 has a lot more support for autoconfiguration than IPv4. But
  for this autoconfiguration to work on the hosts of a network, the

Reply via email to