aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases4
-rwxr-xr-xsysconfig/network-scripts/ifup-ipv62
-rw-r--r--sysconfig/network-scripts/network-functions6
-rw-r--r--sysconfig/network-scripts/network-functions-ipv66
4 files changed, 9 insertions, 9 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 83f53c09..c8b8634a 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -351,8 +351,8 @@ for FILE in ifcfg-${parent_device}-range* ; do
IPADDR="$ipaddr_prefix.$ipaddr_num"
DEVICE="$parent_device:$ipaddr_clonenum"
[ "$ONPARENT" != "no" -a "$ONPARENT" != "NO" ] && new_interface;
- let 'ipaddr_num=ipaddr_num+1'
- let 'ipaddr_clonenum=ipaddr_clonenum+1'
+ ipaddr_num=$(($ipaddr_num+1))
+ ipaddr_clonenum=$(($ipaddr_clonenum+1))
done
done
diff --git a/sysconfig/network-scripts/ifup-ipv6 b/sysconfig/network-scripts/ifup-ipv6
index 1dd30aff..ff14b6dd 100755
--- a/sysconfig/network-scripts/ifup-ipv6
+++ b/sysconfig/network-scripts/ifup-ipv6
@@ -225,7 +225,7 @@ if [ "$IPV6TO4INIT" = "yes" ]; then
ipv4mtu="$(ipv6_exec_ip link show dev $DEVICE | grep -w "mtu" | awk '{ print $5 }')"
if [ -n "$ipv4mtu" ]; then
# IPv6 tunnel MTU is IPv4 MTU minus 20 for IPv4 header
- tunnelmtu=$[ $ipv4mtu - 20 ]
+ tunnelmtu=$(($ipv4mtu-20))
fi
if [ -n "$IPV6TO4_MTU" ]; then
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index fe10aae8..1583a3ae 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -361,12 +361,12 @@ change_resolv_conf ()
s="$s"$'\n';
fi;
if [ $# -gt 1 ]; then
- let n_args=$#;
+ n_args=$#;
while [ $n_args -gt 0 ];
do
if [[ "$s" = *$1* ]]; then
shift;
- let n_args=n_args-1;
+ n_args=$(($n_args-1));
continue;
fi;
s="$s$1";
@@ -374,7 +374,7 @@ change_resolv_conf ()
if [ $# -gt 0 ]; then
s="$s"$'\n';
fi;
- let n_args=n_args-1;
+ n_args=$(($n_args-1));
done;
elif [ $# -eq 1 ]; then
if [ "x$s" != "x" ]; then
diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6
index d56d7436..91329ff2 100644
--- a/sysconfig/network-scripts/network-functions-ipv6
+++ b/sysconfig/network-scripts/network-functions-ipv6
@@ -44,7 +44,7 @@ ipv6_log() {
case $t in
'stdout'|'stderr'|'syslog')
local channel="$t"
- local fn=$[ $fn + 1 ]
+ local fn=$(($fn + 1))
;;
*)
local channel="stdout"
@@ -58,7 +58,7 @@ ipv6_log() {
case $t in
'local0'|'local1'|'local2'|'local3'|'local4'|'local5'|'local6'|'local7'|'daemon')
local facility="$t"
- local fn=$[ $fn + 1 ]
+ local fn=$(($fn + 1))
;;
*)
local facility="user"
@@ -80,7 +80,7 @@ ipv6_log() {
case $t in
'info'|'debug'|'notice'|'warn'|'err'|'crit')
local priority="$t"
- local fn=$[ $fn + 1 ]
+ local fn=$(($fn + 1))
;;
*)
local priority="notice"