diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-06 01:14:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-06 01:14:24 +0000 |
commit | fb0679306fee326fb4276e0b75e3fb1604398d6d (patch) | |
tree | db83ccef3dab90be4a53568b6a89839b76d283cc /package/base-files/files/lib | |
parent | 2a8c7ceaf4a1b8b7efc230148082b64d53bbf1e2 (diff) | |
download | master-187ad058-fb0679306fee326fb4276e0b75e3fb1604398d6d.tar.gz master-187ad058-fb0679306fee326fb4276e0b75e3fb1604398d6d.tar.bz2 master-187ad058-fb0679306fee326fb4276e0b75e3fb1604398d6d.zip |
[package] base-files, ppp: fix interface shutdown
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21386 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 80547b76d5..4336244f6e 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -333,12 +333,12 @@ stop_interface_dhcp() { local config="$1" local iface - config_get iface "$config" iface + config_get ifname "$config" ifname - local lock="/var/lock/dhcp-${iface}" + local lock="/var/lock/dhcp-${ifname}" [ -f "$lock" ] && lock -u "$lock" - local pidfile="/var/run/dhcp-${iface}.pid" + local pidfile="/var/run/dhcp-${ifname}.pid" local pid="$(cat "$pidfile" 2>/dev/null)" [ -d "/proc/$pid" ] && { grep -qs udhcpc "/proc/$pid/cmdline" && kill -TERM $pid && \ |