From 4bc057e8701b8619557640903fd228bef1e8736f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 19 Dec 2009 20:21:36 +0200 Subject: Fix some bashisms. --- sysconfig/network-scripts/network-functions | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysconfig/network-scripts') 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 -- cgit v1.2.1