From dd38b15b7545e8250859f6e2583f90dc9a8d5a66 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 6 May 2010 01:14:24 +0000 Subject: base-files, ppp: fix interface shutdown SVN-Revision: 21386 --- package/base-files/files/lib/network/config.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package/base-files/files') 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 && \ -- cgit v1.1