diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-04-21 09:37:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-04-21 09:37:13 +0000 |
commit | c46c4ead4446fba68405d1729817a4619415178a (patch) | |
tree | cabc0dc080184f094032d27c59d259020a5340d7 /package/br2684ctl/files | |
parent | 7dbd4491738bfa5d78df88a4249fb583d705d6f1 (diff) | |
download | upstream-c46c4ead4446fba68405d1729817a4619415178a.tar.gz upstream-c46c4ead4446fba68405d1729817a4619415178a.tar.bz2 upstream-c46c4ead4446fba68405d1729817a4619415178a.zip |
add better default config for ar7, add br2684ctl init script, add a missing setting for pppoa
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7024 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/br2684ctl/files')
-rwxr-xr-x | package/br2684ctl/files/br2684ctl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/br2684ctl/files/br2684ctl b/package/br2684ctl/files/br2684ctl new file mode 100755 index 0000000000..b3ea34efcd --- /dev/null +++ b/package/br2684ctl/files/br2684ctl @@ -0,0 +1,26 @@ +#!/bin/sh /etc/rc.common +stop() { + killall br2684ctl 2>/dev/null >/dev/null + sleep 1 + rmmod br2684 +} + +start_daemon() { + local cfg="$1" + config_get atmdev "$cfg" atmdev + config_get unit "$cfg" unit + config_get vpi "$cfg" vpi + config_get vci "$cfg" vci + config_get encaps "$cfg" encaps + case "$encaps" in + 1|vc) encaps=1;; + *) encaps=0;; + esac + br2684ctl -b -c "$unit" -e "$encaps" -a "${atmdev:+$atmdev.}${vpi:-8}.${vci:-35}" +} + +start() { + insmod br2684 >/dev/null 2>/dev/null + config_load network + config_foreach start_daemon atm-bridge +} |