summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2020-01-05 09:46:46 +0000
committerDarren 'Tadgy' Austin <darren@afterdark.org.uk>2020-01-05 09:46:46 +0000
commit7d8536a1ab1c4e1f5a38c987207dbd119a6455af (patch)
treeb9f385f45937b0228cc995f557754030f204a8b9
parent4b59a24a63c4f39be503e7f4467e94620a33f888 (diff)
downloadslacknetsetup-7d8536a1ab1c4e1f5a38c987207dbd119a6455af.tar.xz
Correct a couple of issues making shellcheck barf errors.
The rest of the shellcheck issues are non-issue warnings that could possibly do with being corrected, but it's not a huge issue.
-rw-r--r--rc.inet14
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.inet1 b/rc.inet1
index 6f4e8ab..11562a5 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -49,7 +49,7 @@ do
IFNAME[$i]=${IFNAME[$i]:=eth${i}}
i=$(($i+1))
done
-debug_log "List of interfaces: ${IFNAME[@]}"
+debug_log "List of interfaces: ${IFNAME[*]}"
####################
# PRE-LOAD MODULES #
@@ -350,7 +350,7 @@ if_up() {
[ -n "${DHCP_IPADDR[$i]}" ] && DHCP_OPTIONS+=("-r" "${DHCP_IPADDR[$i]}")
echo "${1}: polling for DHCP server"
# 15 seconds should be a reasonable default DHCP timeout. 30 was too much.
- debug_log "/sbin/dhcpcd -t ${DHCP_TIMEOUT[$i]:-15} ${DHCP_OPTIONS[@]} ${1}"
+ debug_log "/sbin/dhcpcd -t ${DHCP_TIMEOUT[$i]:-15} ${DHCP_OPTIONS[*]} ${1}"
if /sbin/dhcpcd -t "${DHCP_TIMEOUT[$i]:-15}" "${DHCP_OPTIONS[@]}" ${1}; then
# Enable accepting of RA packets if explicitly told to:
if [ -e /proc/sys/net/ipv6 ] && [ "${USE_RA[$i]}" = "yes" ]; then