diff options
author | Robby Workman <rworkman@slackware.com> | 2017-07-13 19:11:47 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-07-13 19:11:47 -0500 |
commit | 6281b5d47da57004b1d00f1a9946f5af6cca38a0 (patch) | |
tree | bc4719497512c49dba492ead15d605578791d672 /rc.inet1 | |
parent | 04cd52d9770c138cebc5ada8fa9732911b226307 (diff) | |
download | slacknetsetup-6281b5d47da57004b1d00f1a9946f5af6cca38a0.tar.xz |
rc.inet1: Use bash builtin arithmetic instead of external expr
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ lo_down() { # Function to determine if virtual interfaces are defined virtif_determine() { if [ ! -z ${VIRTIFNAME} ]; then - virtifcount=$(expr $(echo ${VIRTIFNAME[@]} | wc -w) - 1) + virtifcount=$(($(echo ${VIRTIFNAME[@]} | wc -w) - 1)) else return 1 fi |