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
@ -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 New Issue
Block a user