diff options
| author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-07-12 03:37:39 +0000 |
|---|---|---|
| committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-07-12 03:37:39 +0000 |
| commit | 7935eda946d415dd160bfab7abb0533c195bbdc5 (patch) | |
| tree | 12c2f6253cb28c6cbb60e30dfbc561776752414d /root/etc/functions.sh | |
| parent | 7ce21e134ce639974ded9ca8ef82875781709089 (diff) | |
pppoe hooks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@89 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'root/etc/functions.sh')
| -rwxr-xr-x | root/etc/functions.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/root/etc/functions.sh b/root/etc/functions.sh index 1f9afb294..2b85e15cb 100755 --- a/root/etc/functions.sh +++ b/root/etc/functions.sh @@ -104,5 +104,7 @@ ifdown () ( type=$1 debug "### ifdown $type ###" if=$(nvram_get ${type}_ifname) - if_valid $if && $DEBUG ifconfig $if down + if_valid $if || return + kill $(cat /var/run/${if}.pid 2>-)2>- + $DEBUG ifconfig $if down ) |
