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 | dd38b15b7545e8250859f6e2583f90dc9a8d5a66 (patch) | |
tree | e837636bb23ccc99eea7949968b4255a3a51f7d3 /package/base-files/files | |
parent | 66ab73d01f264bd8d3043809d47ab071ad3670a0 (diff) | |
download | mtk-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')
-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 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 && \ |