summaryrefslogtreecommitdiff
path: root/openwrt/rhctl/files
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-01-10 15:43:12 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-01-10 15:43:12 (GMT)
commit475ead22df9433e3a7f41fa88190984a10f86144 (patch)
treebb054ba546993db59d9f9293d8a5ab746ecc36e1 /openwrt/rhctl/files
parent51af8e19e9ad47539038f04012f4202f2dbb6b9a (diff)
heartbeatclient works now
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'