From 5b66d8eb1a6570798c2c3735e59a3f3e0b19c52b Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 24 Jul 2005 23:44:19 +0000 Subject: add parprouted git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1542 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/parprouted/files/parprouted.default | 3 +++ package/parprouted/files/parprouted.init | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 package/parprouted/files/parprouted.default create mode 100755 package/parprouted/files/parprouted.init (limited to 'package/parprouted/files') diff --git a/package/parprouted/files/parprouted.default b/package/parprouted/files/parprouted.default new file mode 100755 index 0000000000..17169c4b37 --- /dev/null +++ b/package/parprouted/files/parprouted.default @@ -0,0 +1,3 @@ +LAN_IF=$(nvram get lan_ifname) +WIFI_IF=$(nvram get wifi_ifname) +OPTIONS="$LAN_IF $WIFI_IF" diff --git a/package/parprouted/files/parprouted.init b/package/parprouted/files/parprouted.init new file mode 100755 index 0000000000..2422657ee8 --- /dev/null +++ b/package/parprouted/files/parprouted.init @@ -0,0 +1,16 @@ +#!/bin/sh + +BIN=parprouted +DEFAULT=/etc/default/$BIN +[ -f $DEFAULT ] && . $DEFAULT + +case $1 in + start) + $BIN $OPTIONS + ;; + *) + echo "usage: $0 (start)" + exit 1 +esac + +exit $? -- cgit v1.2.3