X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/c40541ffc885a906a8623bba7eba99053757c1ae..855954db088603d72b701ecc564c83ba7beacde9:/openwrt/package/ppp/files/ifup.pppoe diff --git a/openwrt/package/ppp/files/ifup.pppoe b/openwrt/package/ppp/files/ifup.pppoe index 4c42fa5bb..b43d2689b 100644 --- a/openwrt/package/ppp/files/ifup.pppoe +++ b/openwrt/package/ppp/files/ifup.pppoe @@ -14,7 +14,7 @@ for module in slhc ppp_generic pppox pppoe; do /sbin/insmod $module 2>&- >&- done -IFNAME=$(nvram get pppoe_ifname) +IFNAME=$(nvram get ${type}_device) USERNAME=$(nvram get ppp_username) PASSWORD=$(nvram get ppp_passwd) KEEPALIVE=$(nvram get ppp_redialperiod) @@ -31,7 +31,7 @@ MTU=$(nvram get ppp_mtu) MTU=${MTU:-1492} ifconfig $IFNAME up -/usr/sbin/pppd nodetach \ +/usr/sbin/pppd \ plugin rp-pppoe.so \ connect /bin/true \ usepeerdns \