From 0939419e24fe8834b6237601573dee6a28b72b8a Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sat, 12 Nov 2011 10:54:06 +0000 Subject: package: add om2p-watchdog script Based on a patch by: Marek Lindner SVN-Revision: 28972 --- package/om2p-watchdog/files/om2p-watchdog.init | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 package/om2p-watchdog/files/om2p-watchdog.init (limited to 'package/om2p-watchdog/files/om2p-watchdog.init') diff --git a/package/om2p-watchdog/files/om2p-watchdog.init b/package/om2p-watchdog/files/om2p-watchdog.init new file mode 100755 index 0000000..ddec85f --- /dev/null +++ b/package/om2p-watchdog/files/om2p-watchdog.init @@ -0,0 +1,14 @@ +#!/bin/sh /etc/rc.common +# +# Copyright (C) 2011 OpenWrt.org +# + +START=11 + +boot() { + . /lib/ar71xx.sh + + local board=$(ar71xx_board_name) + + [ "$board" = "om2p" ] && /sbin/om2p-watchdog & +} -- cgit v1.1