openwrt: honour gcc extra configuration flags
[openwrt.git] / package / ppp / files / pppoe.sh
1 scan_pppoe() {
2 scan_ppp "$@"
3 }
4
5 setup_interface_pppoe() {
6 local iface="$1"
7 local config="$2"
8
9 config_get device "$config" device
10
11 for module in slhc ppp_generic pppox pppoe; do
12 /sbin/insmod $module 2>&- >&-
13 done
14
15 # make sure the network state references the correct ifname
16 scan_ppp "$config"
17 config_get ifname "$config" ifname
18 uci set "/var/state/network.$config.ifname=$ifname"
19
20 config_get mtu "$cfg" mtu
21 mtu=${mtu:-1492}
22 start_pppd "$config" \
23 plugin rp-pppoe.so \
24 mtu $mtu mru $mtu \
25 "nic-$device"
26 }
This page took 0.0488 seconds and 5 git commands to generate.