Fix ppp hotplug script (#982)
authorFlorian Fainelli <florian@openwrt.org>
Mon, 27 Nov 2006 08:03:47 +0000 (08:03 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 27 Nov 2006 08:03:47 +0000 (08:03 +0000)
SVN-Revision: 5661

openwrt/package/ppp/files/etc/ppp/ip-up

index 34b4b50e15ae0f1d2af865f5487e10cf76a88304..c52d280be3da6193fff616800793289deae7046a 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-[ -z "$6" ] || env -i ACTION="ifup" INTERFACE="$6" PROTO=ppp /sbin/hotplug "iface"
+[ -z "$1" ] || env -i ACTION="ifup" INTERFACE="$1" PROTO=ppp /sbin/hotplug "iface"
 
 [ -d /etc/ppp/ip-up.d ] && {
        for SCRIPT in /etc/ppp/ip-up.d/*