summaryrefslogtreecommitdiff
path: root/openwrt/rhctl/files
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/rhctl/files')
-rwxr-xr-xopenwrt/rhctl/files/heartbeatclient.init14
-rw-r--r--openwrt/rhctl/files/rhctl.config2
2 files changed, 15 insertions, 1 deletions
diff --git a/openwrt/rhctl/files/heartbeatclient.init b/openwrt/rhctl/files/heartbeatclient.init
index 97f59ce..b201c5e 100755
--- a/openwrt/rhctl/files/heartbeatclient.init
+++ b/openwrt/rhctl/files/heartbeatclient.init
@@ -54,3 +54,17 @@ stop() {
fi
echo "."
}
+
+reset() {
+ echo -n "$DESC: Restarting timeout"
+ if [ -f $PIDFILE ]; then
+ kill -HUP `cat $PIDFILE` > /dev/null 2>&1
+ echo -n " (Ok)"
+ else
+ echo -n " (not running)"
+ fi
+ echo "."
+}
+
+EXTRA_COMMANDS=reset
+EXTRA_HELP=" reset Restart timeout and switch back to master"
diff --git a/openwrt/rhctl/files/rhctl.config b/openwrt/rhctl/files/rhctl.config
index 7d14e51..3245618 100644
--- a/openwrt/rhctl/files/rhctl.config
+++ b/openwrt/rhctl/files/rhctl.config
@@ -30,4 +30,4 @@ config 'heartbeatclient'
option command_sock '/var/run/rhctl/switchctl.sock'
option baudrate '38400'
option device '/dev/ttyHeartbeat'
-
+ option timeout '50'