aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/om-watchdog/files/.svn/text-base/om-watchdog.svn-base
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/om-watchdog/files/.svn/text-base/om-watchdog.svn-base')
-rw-r--r--package/system/om-watchdog/files/.svn/text-base/om-watchdog.svn-base15
1 files changed, 15 insertions, 0 deletions
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