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 2002-03-08 12:33:48 +00:00
parent c910c6e5c8
commit 57f0321e2a

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