summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jankowski <shasta@toxcorp.com>2017-11-21 02:53:19 +0100
committerRobby Workman <rworkman@slackware.com>2017-11-21 00:07:59 -0600
commit96cba49d10f8cd7c50bd20b21203fd6277ea3257 (patch)
tree126b612bd3d62b625cc2ffa4867f919da01712f9
parent2fe6ebae0398a1bf67b839e20e5e87b979de547a (diff)
downloadslacknetsetup-96cba49d10f8cd7c50bd20b21203fd6277ea3257.tar.xz
rc.inet1: Remove unnecessary unset num
The only places using "num" already clear it with "num=0" Signed-off-by: Robby Workman <rworkman@slackware.com>
-rw-r--r--rc.inet12
1 files changed, 0 insertions, 2 deletions
diff --git a/rc.inet1 b/rc.inet1
index 7d5508f..84c39c0 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -211,7 +211,6 @@ if_up() {
/sbin/ip address add ${ipalias}/32 dev ${1} label ${1}:${num} ;
num=$(($num + 1))
done
- unset num
fi
else # bring up interface using a static IP address
if [ -n "${IPADDR[$i]}" ]; then # skip unconfigured interfaces
@@ -228,7 +227,6 @@ if_up() {
/sbin/ip address add ${ipalias}/32 dev ${1} label ${1}:${num} ;
num=$(($num + 1))
done
- unset num
fi
else
debug_log "${1} interface is not configured in /etc/rc.d/rc.inet1.conf"