diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2020-01-05 09:46:46 +0000 |
---|---|---|
committer | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2020-01-05 09:46:46 +0000 |
commit | 7d8536a1ab1c4e1f5a38c987207dbd119a6455af (patch) | |
tree | b9f385f45937b0228cc995f557754030f204a8b9 /rc.inet1 | |
parent | 4b59a24a63c4f39be503e7f4467e94620a33f888 (diff) | |
download | slacknetsetup-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.
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |