aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/files/etc
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2006-05-24 07:19:27 +0000
committerNicolas Thill <nico@openwrt.org>2006-05-24 07:19:27 +0000
commit784e704a9a67a00c32b9187543162f51c8f02a8a (patch)
tree36b62adcd7d8237f2001966bf7b6f864e1a743e8 /package/ppp/files/etc
parent0d22332f4839197e85ea3441c320d5cd8db9cc06 (diff)
downloadupstream-784e704a9a67a00c32b9187543162f51c8f02a8a.tar.gz
upstream-784e704a9a67a00c32b9187543162f51c8f02a8a.tar.bz2
upstream-784e704a9a67a00c32b9187543162f51c8f02a8a.zip
sync ppp with trunk and convert it to -ng.
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3826 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/files/etc')
-rwxr-xr-xpackage/ppp/files/etc/ppp/ip-down7
-rwxr-xr-xpackage/ppp/files/etc/ppp/ip-up7
2 files changed, 14 insertions, 0 deletions
diff --git a/package/ppp/files/etc/ppp/ip-down b/package/ppp/files/etc/ppp/ip-down
index 044759fbf1..334bcb885a 100755
--- a/package/ppp/files/etc/ppp/ip-down
+++ b/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/package/ppp/files/etc/ppp/ip-up b/package/ppp/files/etc/ppp/ip-up
index c67a3d03c5..34b4b50e15 100755
--- a/package/ppp/files/etc/ppp/ip-up
+++ b/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
+}