From 124c9fa3f4beab4039a4b8746220092ff3576af4 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Fri, 8 Mar 2002 12:33:48 +0000 Subject: [PATCH] Do not depend on "expr" for doing arithmetic, use the shell builtin functions (picobsd might not have the command available). --- release/picobsd/mfs_tree/etc/rc.network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/picobsd/mfs_tree/etc/rc.network b/release/picobsd/mfs_tree/etc/rc.network index d7ec035a9d1..82446818d16 100644 --- a/release/picobsd/mfs_tree/etc/rc.network +++ b/release/picobsd/mfs_tree/etc/rc.network @@ -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