Verified Commit d9f666cd authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

watchdog_adjust: Make boot faster

parent 7521c278
......@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=watchdog_adjust
PKG_VERSION:=2
PKG_VERSION:=3
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_MAINTAINER:=Martin Strbacka <martin.strbacka@nic.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
......
......@@ -6,7 +6,6 @@ start() {
# 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": 12 }'
( sleep 3 && 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