diff options
author | Jakub Jankowski <shasta@toxcorp.com> | 2017-11-26 23:09:14 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-11-26 23:09:14 -0600 |
commit | 7a0cbb9ec6ce5867e6c8be5a59a3066adc76ee13 (patch) | |
tree | 71d7615deb6ad0005fc5916daa1ac514fc1b7382 | |
parent | ad9786366e1c2ac2e3f9ad2ad6eae851c2f943fb (diff) | |
download | slacknetsetup-current-20171128.tar.xz |
rc.inet1: Fix typo ( $1 --> $i )current-20171128
Signed-off-by: Robby Workman <rworkman@slackware.com>
-rw-r--r-- | rc.inet1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -205,7 +205,7 @@ if_up() { echo "/etc/rc.d/rc.inet1: /sbin/dhcpcd -L -t ${DHCP_TIMEOUT[$i]:-15} ${DHCP_OPTIONS} ${1}" | $LOGGER /sbin/dhcpcd -L -t ${DHCP_TIMEOUT[$i]:-15} ${DHCP_OPTIONS} ${1} # If the dhcpcd call succeeds, add extra IP addresses, if defined, to interface - if [ "$?" == "0" ] && [ -n "${IPALIASES[$1]}" ]; then + if [ "$?" == "0" ] && [ -n "${IPALIASES[$i]}" ]; then num=0 for ipalias in ${IPALIASES[$i]}; do /sbin/ip address add ${ipalias}/32 dev ${1} label ${1}:${num} ; |