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:
Luigi Rizzo 2002-03-08 12:33:48 +00:00
parent 9db97a0145
commit 124c9fa3f4

View File

@ -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