From 784e704a9a67a00c32b9187543162f51c8f02a8a Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Wed, 24 May 2006 07:19:27 +0000 Subject: 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 --- package/ppp/files/etc/ppp/ip-down | 7 +++++++ package/ppp/files/etc/ppp/ip-up | 7 +++++++ package/ppp/files/ifup.pppoa | 2 ++ package/ppp/files/ifup.pppoe | 2 ++ 4 files changed, 18 insertions(+) (limited to 'package/ppp/files') 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 -- cgit v1.2.3