From 7d8536a1ab1c4e1f5a38c987207dbd119a6455af Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sun, 5 Jan 2020 09:46:46 +0000 Subject: 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. --- rc.inet1 | 4 ++-- 1 file 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 -- cgit v1.2.3