Package: wicd
Version: 1.5.9-5
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: initd-status-support
Here is a patch to support the "status" action in the init.d script.
Note that your package is currently already missing a dependency on lsb-base.
diff -u wicd-1.5.9/debian/control wicd-1.5.9/debian/control
--- wicd-1.5.9/debian/control
+++ wicd-1.5.9/debian/control
@@ -22,7 +22,8 @@
dhcpcd | dhcp3-client | pump,
net-tools | ethtool,
net-tools | iproute,
- adduser
+ adduser,
+ lsb-base (>= 3.2-13)
Suggests: pm-utils
Conflicts: network-manager
Description: wired and wireless network manager
diff -u wicd-1.5.9/debian/init wicd-1.5.9/debian/init
--- wicd-1.5.9/debian/init
+++ wicd-1.5.9/debian/init
@@ -161,9 +161,11 @@
;;
esac
;;
+ status)
+ status_of_proc $DAEMON $NAME -p $PIDFILE
+ ;;
*)
- #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
- echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
exit 3
;;
esac