Commit 96aca591 authored by Martin Strbacka's avatar Martin Strbacka

Added watchdog-adjust init script.

parent 4467a67b
#
## Copyright (C) 2013 CZ.NIC z.s.p.o. (http://www.nic.cz/)
#
## This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
#
include $(TOPDIR)/rules.mk
PKG_NAME:=watchdog_adjust
PKG_VERSION:=1
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_MAINTAINER:=Martin Strbacka <martin.strbacka@nic.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
TITLE:=$(PKG_NAME)
endef
define Build/Compile
echo Building OK
endef
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
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
#!/bin/sh /etc/rc.common
START=99
start() {
ubus call system watchdog '{ "frequency": '2' }'
sleep 3
ubus call system watchdog '{ "timeout": '7' }'
}
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