diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-07-24 23:44:19 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-07-24 23:44:19 +0000 |
commit | 6560ebb671bafd823d8fed6364d015767aab5edf (patch) | |
tree | bb92fc3bb72911341ab99bd168e7034a5f7dca2a /openwrt/package/parprouted/files | |
parent | b401d50c8b3b367ea61af8fdf2ce44440a51a3a8 (diff) |
add parprouted
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1542 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/parprouted/files')
-rwxr-xr-x | openwrt/package/parprouted/files/parprouted.default | 3 | ||||
-rwxr-xr-x | openwrt/package/parprouted/files/parprouted.init | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/openwrt/package/parprouted/files/parprouted.default b/openwrt/package/parprouted/files/parprouted.default new file mode 100755 index 000000000..17169c4b3 --- /dev/null +++ b/openwrt/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/openwrt/package/parprouted/files/parprouted.init b/openwrt/package/parprouted/files/parprouted.init new file mode 100755 index 000000000..2422657ee --- /dev/null +++ b/openwrt/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 $? |