From 77cb290b5475058154d8288b4913ebfa71ad7e3c Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 21 Apr 2007 09:37:13 +0000 Subject: 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 --- package/br2684ctl/files/br2684ctl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 package/br2684ctl/files/br2684ctl (limited to 'package/br2684ctl/files') diff --git a/package/br2684ctl/files/br2684ctl b/package/br2684ctl/files/br2684ctl new file mode 100755 index 000000000..b3ea34efc --- /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 +} -- cgit v1.2.3