summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2021-03-07 22:44:05 +0000
committerDarren 'Tadgy' Austin <darren@afterdark.org.uk>2021-03-07 22:44:05 +0000
commit9dca929b5f27a65c762ff3408a7a4c3d96a0bf4c (patch)
tree4d14bcf94c0c8be51df692a6590b71625d040edb
parente8ea45830d8223d2a3b9c25955ce24853650625b (diff)
downloadslacknetsetup-9dca929b5f27a65c762ff3408a7a4c3d96a0bf4c.tar.xz
Fix a typo in br_open when configuring IFOPTS: i->1.
-rw-r--r--rc.inet12
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.inet1 b/rc.inet1
index b8be188..a9ae95b 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -159,7 +159,7 @@ br_open() {
debug_log "/sbin/ip link set dev ${IFNAME[$1]} type bridge $IFOPT"
/sbin/ip link set dev ${IFNAME[$1]} type bridge $IFOPT
fi
- done <<<"${IFOPTS[$i]/%|*([[:blank:]])}|" # The | on the end is required.
+ done <<<"${IFOPTS[$1]/%|*([[:blank:]])}|" # The | on the end is required.
# Don't bring up the interface if it will be brought up later during IP configuration.
# This prevents a situation where SLAAC takes a while to apply if the interface is already up.
if [ -z "${IPADDRS[$1]}" ] && [ -z "${IP6ADDRS[$1]}" ] && [ -z "${IPADDR[$1]}" ] && [ "${USE_DHCP[$1]}" != "yes" ] && [ "${USE_DHCP6[$1]}" != "yes" ] && [ "${USE_SLAAC[$1]}" != "yes" ]; then