diff options
-rw-r--r-- | package/busybox/Config.in | 4 | ||||
-rw-r--r-- | package/busybox/busybox.mk | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/package/busybox/Config.in b/package/busybox/Config.in index 2890c492d..4d9899dbf 100644 --- a/package/busybox/Config.in +++ b/package/busybox/Config.in @@ -64,12 +64,14 @@ config BR2_PACKAGE_BUSYBOX_WATCHDOG if BR2_PACKAGE_BUSYBOX_WATCHDOG config BR2_PACKAGE_BUSYBOX_WATCHDOG_PERIOD - int "Delay between reset" + string "Delay between reset" default "5" help Select the number of seconds between each reset of the watchdog (default 5) + Use ms suffix to specify milliseconds (e.g. 500ms) + endif endif diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 599e14553..900896f70 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -168,7 +168,7 @@ define BUSYBOX_INSTALL_WATCHDOG_SCRIPT [ -f $(TARGET_DIR)/etc/init.d/S15watchdog ] || \ install -D -m 0755 package/busybox/S15watchdog \ $(TARGET_DIR)/etc/init.d/S15watchdog && \ - sed -i s/PERIOD/$(BR2_PACKAGE_BUSYBOX_WATCHDOG_PERIOD)/ \ + sed -i s/PERIOD/$(call qstrip,$(BR2_PACKAGE_BUSYBOX_WATCHDOG_PERIOD))/ \ $(TARGET_DIR)/etc/init.d/S15watchdog endef endif |