summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-11 05:01:59 +0000
committerDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-11 05:01:59 +0000
commit96365c0cf1e0e3ff852e0ec496702b856f64dfbd (patch)
tree12201b94d293d2d9449fe629d8d45e4445fa1400
parent63ee3db06be3f43ca63873e75f28cd2223bcfa32 (diff)
downloadslacknetsetup-96365c0cf1e0e3ff852e0ec496702b856f64dfbd.tar.xz
Fix typo when de-configuring interfaces, i->1.
-rw-r--r--rc.inet12
1 files changed, 1 insertions, 1 deletions
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: