aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/om-watchdog/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/om-watchdog/files')
-rw-r--r--package/system/om-watchdog/files/.svn/entries96
-rw-r--r--package/system/om-watchdog/files/.svn/text-base/om-watchdog.init.svn-base30
-rw-r--r--package/system/om-watchdog/files/.svn/text-base/om-watchdog.svn-base15
-rw-r--r--package/system/om-watchdog/files/om-watchdog15
-rw-r--r--package/system/om-watchdog/files/om-watchdog.init30
5 files changed, 186 insertions, 0 deletions
diff --git a/package/system/om-watchdog/files/.svn/entries b/package/system/om-watchdog/files/.svn/entries
new file mode 100644
index 0000000..006394e
--- /dev/null
+++ b/package/system/om-watchdog/files/.svn/entries
@@ -0,0 +1,96 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/package/system/om-watchdog/files
+svn://svn.openwrt.org/openwrt
+
+
+
+2013-02-01T15:50:49.759805Z
+35431
+juhosg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+om-watchdog
+file
+
+
+
+
+2013-03-17T12:13:14.000000Z
+decf0059225f31c6825e11cb3a37c6ca
+2012-10-17T22:45:58.668189Z
+33830
+blogic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+251
+
+om-watchdog.init
+file
+
+
+
+
+2013-03-17T12:13:14.000000Z
+333ea5be837246ced8c832a4acf17b5e
+2013-02-01T15:50:49.759805Z
+35431
+juhosg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+488
+
diff --git a/package/system/om-watchdog/files/.svn/text-base/om-watchdog.init.svn-base b/package/system/om-watchdog/files/.svn/text-base/om-watchdog.init.svn-base
new file mode 100644
index 0000000..0298bce
--- /dev/null
+++ b/package/system/om-watchdog/files/.svn/text-base/om-watchdog.init.svn-base
@@ -0,0 +1,30 @@
+#!/bin/sh /etc/rc.common
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+
+START=11
+
+SERVICE_DAEMONIZE=1
+
+boot() {
+ if [ -r /lib/ar71xx.sh ]; then
+ . /lib/ar71xx.sh
+ local board=$(ar71xx_board_name)
+
+ case "$board" in
+ "om2p"|"om2p-hs")
+ service_start /sbin/om-watchdog 12
+ ;;
+ "om2p-lc")
+ service_start /sbin/om-watchdog 26
+ ;;
+ "mr600v2")
+ service_start /sbin/om-watchdog 15
+ ;;
+ esac
+ else
+ #we assume it is om1p in this case
+ service_start /sbin/om-watchdog 3
+ fi
+}
diff --git a/package/system/om-watchdog/files/.svn/text-base/om-watchdog.svn-base b/package/system/om-watchdog/files/.svn/text-base/om-watchdog.svn-base
new file mode 100644
index 0000000..d730c68
--- /dev/null
+++ b/package/system/om-watchdog/files/.svn/text-base/om-watchdog.svn-base
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+GPIO=$1
+
+trap "" INT HUP
+
+echo $GPIO > /sys/class/gpio/export
+echo out > /sys/class/gpio/gpio${GPIO}/direction
+
+while true; do
+ echo 1 > /sys/class/gpio/gpio${GPIO}/value
+ sleep 1
+ echo 0 > /sys/class/gpio/gpio${GPIO}/value
+ sleep 180
+done
diff --git a/package/system/om-watchdog/files/om-watchdog b/package/system/om-watchdog/files/om-watchdog
new file mode 100644
index 0000000..d730c68
--- /dev/null
+++ b/package/system/om-watchdog/files/om-watchdog
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+GPIO=$1
+
+trap "" INT HUP
+
+echo $GPIO > /sys/class/gpio/export
+echo out > /sys/class/gpio/gpio${GPIO}/direction
+
+while true; do
+ echo 1 > /sys/class/gpio/gpio${GPIO}/value
+ sleep 1
+ echo 0 > /sys/class/gpio/gpio${GPIO}/value
+ sleep 180
+done
diff --git a/package/system/om-watchdog/files/om-watchdog.init b/package/system/om-watchdog/files/om-watchdog.init
new file mode 100644
index 0000000..0298bce
--- /dev/null
+++ b/package/system/om-watchdog/files/om-watchdog.init
@@ -0,0 +1,30 @@
+#!/bin/sh /etc/rc.common
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+
+START=11
+
+SERVICE_DAEMONIZE=1
+
+boot() {
+ if [ -r /lib/ar71xx.sh ]; then
+ . /lib/ar71xx.sh
+ local board=$(ar71xx_board_name)
+
+ case "$board" in
+ "om2p"|"om2p-hs")
+ service_start /sbin/om-watchdog 12
+ ;;
+ "om2p-lc")
+ service_start /sbin/om-watchdog 26
+ ;;
+ "mr600v2")
+ service_start /sbin/om-watchdog 15
+ ;;
+ esac
+ else
+ #we assume it is om1p in this case
+ service_start /sbin/om-watchdog 3
+ fi
+}