From 96365c0cf1e0e3ff852e0ec496702b856f64dfbd Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Mon, 11 Nov 2019 05:01:59 +0000 Subject: Fix typo when de-configuring interfaces, i->1. --- rc.inet1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.inet1') diff --git a/rc.inet1 b/rc.inet1 index 19697bc..ffa3ae2 100644 --- a/rc.inet1 +++ b/rc.inet1 @@ -434,7 +434,7 @@ if_down() { return fi info_log "${1}: de-configuring interface" - if [ -e /sys/class/net/${i%%[:.]*} ]; then + if [ -e /sys/class/net/${1%%[:.]*} ]; then if [ "${USE_DHCP[$i]}" = "yes" ] || [ "${USE_DHCP6[$i]}" = "yes" ]; then # take down dhcpcd info_log "${1}: stopping dhcpcd" # When using -k, dhcpcd requires some command line options to match those used to invoke it: -- cgit v1.2.3