mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not depend on "expr" for doing arithmetic, use the shell builtin functions
(picobsd might not have the command available).
This commit is contained in:
parent
9db97a0145
commit
124c9fa3f4
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ network_pass1() {
|
|||
eval ifconfig_args=\$ifconfig_${ifn}_alias${alias}
|
||||
if [ -n "${ifconfig_args}" ]; then
|
||||
ifconfig ${ifn} ${ifconfig_args} alias
|
||||
alias=`expr ${alias} + 1`
|
||||
alias=$((${alias} + 1))
|
||||
else
|
||||
break;
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue