diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-19 06:42:37 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-19 06:42:37 +0000 |
commit | a265e1d53505fdf5aaa68d35f203a225fe8e1b66 (patch) | |
tree | 693bde3aa3206c66d60ae970fd94b3b80b9a3660 /package/ppp/files | |
parent | 16de170f1aa45b651f9efb3534f612ca5b6c7012 (diff) | |
download | upstream-a265e1d53505fdf5aaa68d35f203a225fe8e1b66.tar.gz upstream-a265e1d53505fdf5aaa68d35f203a225fe8e1b66.tar.bz2 upstream-a265e1d53505fdf5aaa68d35f203a225fe8e1b66.zip |
[package] ppp:
- implement coldplugging for pppoa interfaces
- honour device option to select the DSL adapter
- don't set any default mtu, rely on pppd to negotiate it
- bump pkg revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23530 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/files')
-rw-r--r-- | package/ppp/files/pppoa.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/package/ppp/files/pppoa.sh b/package/ppp/files/pppoa.sh index adbcdf9fbb..59e35c2dca 100644 --- a/package/ppp/files/pppoa.sh +++ b/package/ppp/files/pppoa.sh @@ -1,9 +1,12 @@ +coldplug_interface_pppoa() { + setup_interface_pppoa x "$1" +} + stop_interface_pppoa() { stop_interface_ppp "$1" } setup_interface_pppoa() { - local iface="$1" local config="$2" local device @@ -29,9 +32,8 @@ setup_interface_pppoa() { local mtu config_get mtu "$config" mtu - mtu=${mtu:-1500} start_pppd "$config" \ - plugin pppoatm.so ${vpi:-8}.${vci:-35} ${encaps} \ - mtu $mtu mru $mtu + plugin pppoatm.so ${device:+$device.}${vpi:-8}.${vci:-35} \ + ${encaps} ${mtu:+mtu $mtu mru $mtu} } |