From a1e114ff7bc895c973f890bd288aeb4ef68e54ae Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 4 Oct 2011 23:12:35 +0000 Subject: [PATCH] [backfire] backport r28364 SVN-Revision: 28365 --- package/ppp/Makefile | 4 ++-- package/ppp/files/ppp.sh | 10 +++++++++- package/ppp/files/pppoe.sh | 4 ++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package/ppp/Makefile b/package/ppp/Makefile index 487763e020..5b034ab34d 100644 --- a/package/ppp/Makefile +++ b/package/ppp/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=ppp PKG_VERSION:=2.4.4 -PKG_RELEASE:=16 +PKG_RELEASE:=16.1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/ diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh index 996d542280..7c789fc983 100644 --- a/package/ppp/files/ppp.sh +++ b/package/ppp/files/ppp.sh @@ -16,6 +16,13 @@ stop_interface_ppp() { 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 @@ -110,7 +117,8 @@ start_pppd() { ${disconnect:+disconnect "$disconnect"} \ ${ipv6} \ ${pppd_options} \ - nodetach + nodetach \ + ${nic} lock -u "/var/lock/ppp-${link}" } diff --git a/package/ppp/files/pppoe.sh b/package/ppp/files/pppoe.sh index bbd36a11ab..99409f3f08 100644 --- a/package/ppp/files/pppoe.sh +++ b/package/ppp/files/pppoe.sh @@ -13,7 +13,7 @@ setup_interface_pppoe() { config_get mtu "$config" mtu mtu=${mtu:-1492} start_pppd "$config" \ + "nic-$iface" \ plugin rp-pppoe.so \ - mtu $mtu mru $mtu \ - "nic-$iface" + mtu $mtu mru $mtu } -- 2.30.2