diff options
author | Jakub Jankowski <shasta@toxcorp.com> | 2017-11-21 02:53:19 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-11-21 00:07:59 -0600 |
commit | 96cba49d10f8cd7c50bd20b21203fd6277ea3257 (patch) | |
tree | 126b612bd3d62b625cc2ffa4867f919da01712f9 /rc.inet1 | |
parent | 2fe6ebae0398a1bf67b839e20e5e87b979de547a (diff) | |
download | slacknetsetup-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>
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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" |