save the real configured interface name in the 'device' variable when running scan_in...
[openwrt-10.03/.git] / package / ppp / files / etc / ppp / ip-up
index c67a3d03c5defc89324d9b6d3cf9adc95a451f07..34b4b50e15ae0f1d2af865f5487e10cf76a88304 100755 (executable)
@@ -1,2 +1,9 @@
 #!/bin/sh
 [ -z "$6" ] || env -i ACTION="ifup" INTERFACE="$6" PROTO=ppp /sbin/hotplug "iface"
+
+[ -d /etc/ppp/ip-up.d ] && {
+       for SCRIPT in /etc/ppp/ip-up.d/*
+       do
+               [ -x "$SCRIPT" ] && "$SCRIPT" $@
+       done
+}