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
c910c6e5c8
commit
57f0321e2a
@ -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