Dear all,

Here is a simple patch to provide /etc/init.d/watchdog stop. Just in
case someone is interested.

Index: package/base-files/files/etc/init.d/watchdog
===================================================================
--- package/base-files/files/etc/init.d/watchdog        (revision 21164)
+++ package/base-files/files/etc/init.d/watchdog        (working copy)
@@ -6,3 +6,8 @@
         [ -c /dev/watchdog ] && [ -x /sbin/watchdog ] && \
                watchdog -t 5 /dev/watchdog
 }
+
+stop() {
+       killall -q watchdog
+       [ -c /dev/watchdog ] && echo "V" > /dev/watchdog
+}

Attachment: signature.asc
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to