PKG_NAME:=ppp
PKG_VERSION:=2.4.5
PKG_NAME:=ppp
PKG_VERSION:=2.4.5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/
start_pppd() {
local cfg="$1"; shift
start_pppd() {
local cfg="$1"; shift
+ # Workaround for PPPoE service and AC name options,
+ # filter out the nic-* argument and append it as last option
+ local nic=""
+ case "$1" in
+ nic-*) nic="$1"; shift ;;
+ esac
+
local proto
config_get proto "$cfg" proto
local proto
config_get proto "$cfg" proto
${disconnect:+disconnect "$disconnect"} \
${ipv6} \
${pppd_options} \
${disconnect:+disconnect "$disconnect"} \
${ipv6} \
${pppd_options} \
lock -u "/var/lock/ppp-${link}"
}
lock -u "/var/lock/ppp-${link}"
}
config_get mtu "$config" mtu
mtu=${mtu:-1492}
start_pppd "$config" \
config_get mtu "$config" mtu
mtu=${mtu:-1492}
start_pppd "$config" \
- mtu $mtu mru $mtu \
- "nic-$iface"