Commit 638cd89f authored by Martin Strbacka's avatar Martin Strbacka

watchdog_adjust: Cahnged timeout value, changed priority of init script, some minor fixups.

parent 61b91c68
......@@ -23,9 +23,16 @@ define Build/Compile
echo Building OK
define Package/$(PKG_NAME)/postinst
[ -n "$$IPKG_INSTROOT" ] || {
/etc/init.d/watchdog_adjust disable
/etc/init.d/watchdog_adjust enable
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/etc/init.d/watchdog_adjust $(1)/etc/init.d/watchdog_adjust
#!/bin/sh /etc/rc.common
start() {
ubus call system watchdog '{ "frequency": '2' }'
# The command is splitted into two commands for safety reasons.
# It is safer to setup faster frequency at first, then wait some time and after that shorten the timeout.
ubus call system watchdog '{ "frequency": 2 }'
sleep 3
ubus call system watchdog '{ "timeout": '7' }'
ubus call system watchdog '{ "timeout": 12 }'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment