diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-05-24 07:19:27 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-05-24 07:19:27 +0000 |
commit | c343b9656f9a548aa0323dabb725b9e2274847bb (patch) | |
tree | 36b62adcd7d8237f2001966bf7b6f864e1a743e8 /package/ppp/files | |
parent | a8f632da6583439bddf8b41341f2d4f51ae884bb (diff) |
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')
-rwxr-xr-x | package/ppp/files/etc/ppp/ip-down | 7 | ||||
-rwxr-xr-x | package/ppp/files/etc/ppp/ip-up | 7 | ||||
-rw-r--r-- | package/ppp/files/ifup.pppoa | 2 | ||||
-rw-r--r-- | package/ppp/files/ifup.pppoe | 2 |
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 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 +} diff --git a/package/ppp/files/ifup.pppoa b/package/ppp/files/ifup.pppoa index 277266c0f5..f78a162ce5 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 0f3c14ed0d..c7019fc398 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 |