aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2009-12-19 20:21:36 +0200
committerBill Nottingham <notting@redhat.com>2010-01-07 17:50:21 -0500
commit4bc057e8701b8619557640903fd228bef1e8736f (patch)
tree157f238754c6a4448288a59ebd40296b8798bfa4 /sysconfig/network-scripts
parent655de403ad25a5332b25174009107884f9b30420 (diff)
downloadinitscripts-4bc057e8701b8619557640903fd228bef1e8736f.tar
initscripts-4bc057e8701b8619557640903fd228bef1e8736f.tar.gz
initscripts-4bc057e8701b8619557640903fd228bef1e8736f.tar.bz2
initscripts-4bc057e8701b8619557640903fd228bef1e8736f.tar.xz
initscripts-4bc057e8701b8619557640903fd228bef1e8736f.zip
Fix some bashisms.
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions8
1 files changed, 4 insertions, 4 deletions
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