summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jankowski <shasta@toxcorp.com>2017-11-26 23:09:14 -0600
committerRobby Workman <rworkman@slackware.com>2017-11-26 23:09:14 -0600
commit7a0cbb9ec6ce5867e6c8be5a59a3066adc76ee13 (patch)
tree71d7615deb6ad0005fc5916daa1ac514fc1b7382
parentad9786366e1c2ac2e3f9ad2ad6eae851c2f943fb (diff)
downloadslacknetsetup-7a0cbb9ec6ce5867e6c8be5a59a3066adc76ee13.tar.xz
rc.inet1: Fix typo ( $1 --> $i )current-20171128
Signed-off-by: Robby Workman <rworkman@slackware.com>
-rw-r--r--rc.inet12
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.inet1 b/rc.inet1
index f5ff7b6..2f566ef 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -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} ;