use pptp_ifname
authorFelix Fietkau <[email protected]>
Sat, 16 Jul 2005 14:02:41 +0000 (14:02 +0000)
committerFelix Fietkau <[email protected]>
Sat, 16 Jul 2005 14:02:41 +0000 (14:02 +0000)
SVN-Revision: 1463

openwrt/package/pptp/files/ifup.pptp

index dbc3b7b794fce318301bcfdd425695f0fdc3a8ca..21a574acb751ca1612524e168a902ec8b9624cf6 100644 (file)
@@ -2,7 +2,7 @@
 . /etc/functions.sh
 type=$1
 
-[ "$(nvram get ${type}_proto)" = "pptp" ] || exit 0
+[ "$(nvram get ${type}_proto)" = "pptp" ] || exit
 
 [ -d "/var/lock" ] || mkdir -p /var/lock || exit 1
 
@@ -10,7 +10,7 @@ for module in slhc ppp_generic ppp_async ip_gre; do
        /sbin/insmod $module 2>&- >&-
 done
 
-if=$(nvram get ${type}_ifname)
+if=$(nvram get pptp_ifname)
 ip=$(nvram get ${type}_ipaddr)
 netmask=$(nvram get ${type}_netmask)
 [ -z "$ip" -o -z "$if" ] || ifconfig $if $ip ${netmask:+netmask $netmask} broadcast + up