summaryrefslogtreecommitdiffstats
path: root/openwrt/package/ppp/files
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-05-20 15:16:06 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-05-20 15:16:06 +0000
commiteae8dda3c81c0e649f151c092b111b66a8956777 (patch)
tree1fd6cb7741f32fa918379a05aa6137bff2b5a893 /openwrt/package/ppp/files
parentbe8041e41cc67fda3efa11dc266a1ed438f465ea (diff)
add support for multiple /etc/ppp/ip-{up,down} scripts.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3804 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/ppp/files')
-rwxr-xr-xopenwrt/package/ppp/files/etc/ppp/ip-down7
-rwxr-xr-xopenwrt/package/ppp/files/etc/ppp/ip-up7
2 files changed, 14 insertions, 0 deletions
diff --git a/openwrt/package/ppp/files/etc/ppp/ip-down b/openwrt/package/ppp/files/etc/ppp/ip-down
index 044759fbf..334bcb885 100755
--- a/openwrt/package/ppp/files/etc/ppp/ip-down
+++ b/openwrt/package/ppp/files/etc/ppp/ip-down
@@ -1,2 +1,9 @@
#!/bin/sh
[ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" PROTO=ppp /sbin/hotplug "iface"
+
+[ -d /etc/ppp/ip-down.d ] && {
+ for SCRIPT in /etc/ppp/ip-down.d/*
+ do
+ [ -x "$SCRIPT" ] && "$SCRIPT" $@
+ done
+}
diff --git a/openwrt/package/ppp/files/etc/ppp/ip-up b/openwrt/package/ppp/files/etc/ppp/ip-up
index c67a3d03c..34b4b50e1 100755
--- a/openwrt/package/ppp/files/etc/ppp/ip-up
+++ b/openwrt/package/ppp/files/etc/ppp/ip-up
@@ -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
+}