projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d25ab43
)
use pptp_ifname
author
Felix Fietkau
<
[email protected]
>
Sat, 16 Jul 2005 14:02:41 +0000
(14:02 +0000)
committer
Felix Fietkau
<
[email protected]
>
Sat, 16 Jul 2005 14:02:41 +0000
(14:02 +0000)
SVN-Revision: 1463
openwrt/package/pptp/files/ifup.pptp
patch
|
blob
|
history
diff --git
a/openwrt/package/pptp/files/ifup.pptp
b/openwrt/package/pptp/files/ifup.pptp
index dbc3b7b794fce318301bcfdd425695f0fdc3a8ca..21a574acb751ca1612524e168a902ec8b9624cf6 100644
(file)
--- a/
openwrt/package/pptp/files/ifup.pptp
+++ b/
openwrt/package/pptp/files/ifup.pptp
@@
-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