summaryrefslogtreecommitdiffstats
path: root/package/ppp/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/ppp/files')
-rwxr-xr-xpackage/ppp/files/etc/ppp/ip-down7
-rwxr-xr-xpackage/ppp/files/etc/ppp/ip-up7
-rw-r--r--package/ppp/files/ifup.pppoa2
-rw-r--r--package/ppp/files/ifup.pppoe2
4 files changed, 18 insertions, 0 deletions
diff --git a/package/ppp/files/etc/ppp/ip-down b/package/ppp/files/etc/ppp/ip-down
index 044759fbf..334bcb885 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 c67a3d03c..34b4b50e1 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
+}
diff --git a/package/ppp/files/ifup.pppoa b/package/ppp/files/ifup.pppoa
index 277266c0f..f78a162ce 100644
--- a/package/ppp/files/ifup.pppoa
+++ b/package/ppp/files/ifup.pppoa
@@ -9,6 +9,8 @@ eval "proto=\"\${${type}_proto}\""
exit
}
+mkdir -p /var/lock
+
for module in slhc ppp_generic pppoatm; do
/sbin/insmod $module 2>&- >&-
done
diff --git a/package/ppp/files/ifup.pppoe b/package/ppp/files/ifup.pppoe
index 0f3c14ed0..c7019fc39 100644
--- a/package/ppp/files/ifup.pppoe
+++ b/package/ppp/files/ifup.pppoe
@@ -9,6 +9,8 @@ eval "proto=\"\${${type}_proto}\""
exit
}
+mkdir -p /var/lock
+
for module in slhc ppp_generic pppox pppoe; do
/sbin/insmod $module 2>&- >&-
done