aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/files/etc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-05-01 17:54:37 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-05-01 17:54:37 +0000
commite757ee80f724cfb1906b3649f4545c1680397de0 (patch)
tree9a881d0577ab0dc0379f38f02f2faed62b8e3ced /package/ppp/files/etc
parentebb5858ba835983fa0887743f2536fc0752117f0 (diff)
downloadupstream-e757ee80f724cfb1906b3649f4545c1680397de0.tar.gz
upstream-e757ee80f724cfb1906b3649f4545c1680397de0.tar.bz2
upstream-e757ee80f724cfb1906b3649f4545c1680397de0.zip
ppp: - patch pppd to support named interfaces (e.g. "pppoe-wan") - use named interfaces when bringing up 3g, pptp, ppp or pppoe connections - get rid of unit count logic - shutdown pppd when ifdown is invoked - bump package revision
SVN-Revision: 21283
Diffstat (limited to 'package/ppp/files/etc')
-rwxr-xr-xpackage/ppp/files/etc/ppp/ip-up3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/ppp/files/etc/ppp/ip-up b/package/ppp/files/etc/ppp/ip-up
index 376c87e569..4b44b25d0b 100755
--- a/package/ppp/files/etc/ppp/ip-up
+++ b/package/ppp/files/etc/ppp/ip-up
@@ -6,11 +6,10 @@ PPP_SPEED="$3"
PPP_LOCAL="$4"
PPP_REMOTE="$5"
PPP_IPPARAM="$(echo $6 | sed 's/\./_/g')"
-PPP_UNIT="${PPP_IFACE##ppp}"
export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
[ -z "$PPP_IPPARAM" -o -z "$PPP_LOCAL" ] || {
- uci_set_state network "$PPP_IPPARAM" unit "$PPP_UNIT"
+ uci_set_state network "$PPP_IPPARAM" ifname "$PPP_IFACE"
uci_set_state network "$PPP_IPPARAM" ipaddr "$PPP_LOCAL"
uci_set_state network "$PPP_IPPARAM" gateway "$PPP_REMOTE"