summaryrefslogtreecommitdiff
path: root/package/base-files/files/lib/network
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-05-06 01:14:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-05-06 01:14:24 +0000
commitdd38b15b7545e8250859f6e2583f90dc9a8d5a66 (patch)
treee837636bb23ccc99eea7949968b4255a3a51f7d3 /package/base-files/files/lib/network
parent66ab73d01f264bd8d3043809d47ab071ad3670a0 (diff)
downloadmtk-20170518-dd38b15b7545e8250859f6e2583f90dc9a8d5a66.zip
mtk-20170518-dd38b15b7545e8250859f6e2583f90dc9a8d5a66.tar.gz
mtk-20170518-dd38b15b7545e8250859f6e2583f90dc9a8d5a66.tar.bz2
base-files, ppp: fix interface shutdown
SVN-Revision: 21386
Diffstat (limited to 'package/base-files/files/lib/network')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh6
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 80547b7..4336244 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 && \