aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rc.d/init.d/functions2
-rw-r--r--sysconfig/network-scripts/network-functions8
2 files changed, 5 insertions, 5 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index c8870d3a..09f11b8f 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -557,7 +557,7 @@ confirm() {
get_numeric_dev() {
(
fmt="%d:%d"
- if [ "$1" == "hex" ]; then
+ if [ "$1" = "hex" ]; then
fmt="%x:%x"
fi
ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 082382a7..02009c2c 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -202,7 +202,7 @@ END {
fi
fi
- if [ ${alias} == "bonding" ]; then
+ if [ ${alias} = "bonding" ]; then
install_bonding_driver $1
fi
@@ -361,11 +361,11 @@ change_resolv_conf ()
n_args=$#;
while [ $n_args -gt 0 ];
do
- if [[ "$s" = *$1* ]]; then
+ case "$s" in *$1*)
shift;
n_args=$(($n_args-1));
- continue;
- fi;
+ continue;;
+ esac;
s="$s$1";
shift;
if [ $# -gt 0 ]; then