diff --git a/doc/generate b/doc/generate
index 3152e1d..68a4cbd 100755
--- a/doc/generate
+++ b/doc/generate
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 docdir=`dirname $0`
 mode=$1
diff --git a/perltidy.sh b/perltidy.sh
index 512abdd..16cf552 100755
--- a/perltidy.sh
+++ b/perltidy.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Copyright (c) 2009 Voltaire, Inc. All rights reserved.
 # Copyright (c) 2006 The Regents of the University of California.
diff --git a/scripts/dump_lfts.sh b/scripts/dump_lfts.sh
index 0bf334d..a07c211 100755
--- a/scripts/dump_lfts.sh
+++ b/scripts/dump_lfts.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # This simple script will collect outputs of ibroute for all switches
 # on the subnet and drop it on stdout. It can be used for LFTs dump
diff --git a/scripts/dump_mfts.sh b/scripts/dump_mfts.sh
index d6c2359..cdadba2 100755
--- a/scripts/dump_mfts.sh
+++ b/scripts/dump_mfts.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # This simple script will collect outputs of ibroute for all switches
 # on the subnet and drop it on stdout. It can be used for MFTs dump
diff --git a/scripts/ibcheckerrors.in b/scripts/ibcheckerrors.in
index ca40a68..6ebbe7f 100644
--- a/scripts/ibcheckerrors.in
+++ b/scripts/ibcheckerrors.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-b] [-v] [-N | -nocolor]"\
 	    "[<topology-file> | -C ca_name -P ca_port -t(imeout) timeout_ms]"
 	exit -1
 }
 
-function user_abort() {
+user_abort() {
 	echo "Aborted"
 	exit 1
 }
diff --git a/scripts/ibcheckerrs.in b/scripts/ibcheckerrs.in
index 4b34efc..1edd1eb 100644
--- a/scripts/ibcheckerrs.in
+++ b/scripts/ibcheckerrs.in
@@ -1,15 +1,15 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-b] [-v] [-G] [-T <threshold_file>]" \
 	    "[-s(how_thresholds)] [-N \| -nocolor] [-C ca_name] [-P ca_port]" \
 	    "[-t(imeout) timeout_ms] <lid|guid> [<port>]"
 	exit -1
 }
 
-function green() {
+green() {
 	if [ "$bw" = "yes" ]; then
 		if [ "$verbose" = "yes" ]; then
 			echo $1
@@ -21,7 +21,7 @@ function green() {
 	fi
 }
 
-function red() {
+red() {
 	if [ "$bw" = "yes" ]; then
 		echo $1
 		return
@@ -29,7 +29,7 @@ function red() {
 	echo -e "\\033[1;031m" $1 "\\033[0;39m"
 }
 
-function show_thresholds() {
+show_thresholds() {
 	echo "SymbolErrorCounter=$SymbolErrorCounter"
 	echo "LinkErrorRecoveryCounter=$LinkErrorRecoveryCounter"
 	echo "LinkDownedCounter=$LinkDownedCounter"
@@ -44,7 +44,7 @@ function show_thresholds() {
 	echo "VL15Dropped=$VL15Dropped"
 }
 
-function get_thresholds() {
+get_thresholds() {
 	. $1
 }
 
diff --git a/scripts/ibchecknet.in b/scripts/ibchecknet.in
index 75bc45a..3fd4ae7 100644
--- a/scripts/ibchecknet.in
+++ b/scripts/ibchecknet.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor]" \
 	    "[<topology-file> | -C ca_name -P ca_port -t(imeout) timeout_ms]"
 	exit -1
 }
 
-function user_abort() {
+user_abort() {
 	echo "Aborted"
 	exit 1
 }
diff --git a/scripts/ibchecknode.in b/scripts/ibchecknode.in
index eac8069..d70d5c8 100644
--- a/scripts/ibchecknode.in
+++ b/scripts/ibchecknode.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor] [-G]" \
 	    "[-C ca_name] [-P ca_port] [-t(imeout) timeout_ms] <lid|guid>"
 	exit -1
 }
 
-function green() {
+green() {
 	if [ "$bw" = "yes" ]; then
 		if [ "$verbose" = "yes" ]; then
 			echo $1
@@ -20,7 +20,7 @@ function green() {
 	fi
 }
 
-function red() {
+red() {
 	if [ "$bw" = "yes" ]; then
 		echo $1
 		return
diff --git a/scripts/ibcheckport.in b/scripts/ibcheckport.in
index 3c8588e..16a8c24 100644
--- a/scripts/ibcheckport.in
+++ b/scripts/ibcheckport.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor] [-G]" \
 	   "[-C ca_name] [-P ca_port] [-t(imeout) timeout_ms] <lid|guid> <port>"
 	exit -1
 }
 
-function green() {
+green() {
 	if [ "$bw" = "yes" ]; then
 		if [ "$verbose" = "yes" ]; then
 			echo $1
@@ -20,7 +20,7 @@ function green() {
 	fi
 }
 
-function red() {
+red() {
 	if [ "$bw" = "yes" ]; then
 		echo $1
 		return
diff --git a/scripts/ibcheckportstate.in b/scripts/ibcheckportstate.in
index eb5e304..c5fb948 100644
--- a/scripts/ibcheckportstate.in
+++ b/scripts/ibcheckportstate.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor] [-G]" \
 	   "[-C ca_name] [-P ca_port] [-t(imeout) timeout_ms] <lid|guid> <port>"
 	exit -1
 }
 
-function green() {
+green() {
 	if [ "$bw" = "yes" ]; then
 		if [ "$verbose" = "yes" ]; then
 			echo $1
@@ -20,7 +20,7 @@ function green() {
 	fi
 }
 
-function red() {
+red() {
 	if [ "$bw" = "yes" ]; then
 		echo $1
 		return
diff --git a/scripts/ibcheckportwidth.in b/scripts/ibcheckportwidth.in
index 0df7a11..9cfca11 100644
--- a/scripts/ibcheckportwidth.in
+++ b/scripts/ibcheckportwidth.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor] [-G]" \
 	   "[-C ca_name] [-P ca_port] [-t(imeout) timeout_ms] <lid|guid> <port>"
 	exit -1
 }
 
-function green() {
+green() {
 	if [ "$bw" = "yes" ]; then
 		if [ "$verbose" = "yes" ]; then
 			echo $1
@@ -20,7 +20,7 @@ function green() {
 	fi
 }
 
-function red() {
+red() {
 	if [ "$bw" = "yes" ]; then
 		echo $1
 		return
diff --git a/scripts/ibcheckstate.in b/scripts/ibcheckstate.in
index 8f85f7b..ce89df5 100644
--- a/scripts/ibcheckstate.in
+++ b/scripts/ibcheckstate.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor]" \
 	    "[<topology-file> | -C ca_name -P ca_port -t(imeout) timeout_ms]"
 	exit -1
 }
 
-function user_abort() {
+user_abort() {
 	echo "Aborted"
 	exit 1
 }
diff --git a/scripts/ibcheckwidth.in b/scripts/ibcheckwidth.in
index bf917fb..c8a08ee 100644
--- a/scripts/ibcheckwidth.in
+++ b/scripts/ibcheckwidth.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-v] [-N | -nocolor]" \
 	    "[<topology-file> \| -C ca_name -P ca_port -t(imeout) timeout_ms]"
 	exit -1
 }
 
-function user_abort() {
+user_abort() {
 	echo "Aborted"
 	exit 1
 }
diff --git a/scripts/ibclearcounters.in b/scripts/ibclearcounters.in
index 318fa84..789e02e 100644
--- a/scripts/ibclearcounters.in
+++ b/scripts/ibclearcounters.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [<topology-file>" \
 	    "| -C ca_name -P ca_port -t(imeout) timeout_ms]"
 	exit -1
 }
 
-function user_abort() {
+user_abort() {
 	echo "Aborted"
 	exit 1
 }
diff --git a/scripts/ibclearerrors.in b/scripts/ibclearerrors.in
index 4329ae6..ff7a452 100644
--- a/scripts/ibclearerrors.in
+++ b/scripts/ibclearerrors.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-N | -nocolor] [<topology-file>" \
 	    "| -C ca_name -P ca_port -t(imeout) timeout_ms]"
 	exit -1
 }
 
-function user_abort() {
+user_abort() {
 	echo "Aborted"
 	exit 1
 }
diff --git a/scripts/ibdatacounters.in b/scripts/ibdatacounters.in
index d7bf185..6f0389e 100644
--- a/scripts/ibdatacounters.in
+++ b/scripts/ibdatacounters.in
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-b] [-v] [-N | -nocolor]" \
 	    "[<topology-file> \| -C ca_name -P ca_port -t(imeout) timeout_ms]"
 	exit -1
 }
 
-function user_abort() {
+user_abort() {
 	echo "Aborted"
 	exit 1
 }
diff --git a/scripts/ibdatacounts.in b/scripts/ibdatacounts.in
index ed5f85d..ac5f8c4 100644
--- a/scripts/ibdatacounts.in
+++ b/scripts/ibdatacounts.in
@@ -1,15 +1,15 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [-b] [-v] [-G] [-N | -nocolor]" \
 	    "[-C ca_name] [-P ca_port] [-t(imeout) timeout_ms] <lid|guid>" \
 	    "[<port>]"
 	exit -1
 }
 
-function green() {
+green() {
 	if [ "$bw" = "yes" ]; then
 		if [ "$verbose" = "yes" ]; then
 			echo $1
@@ -21,7 +21,7 @@ function green() {
 	fi
 }
 
-function red() {
+red() {
 	if [ "$bw" = "yes" ]; then
 		echo $1
 		return
diff --git a/scripts/ibhosts.in b/scripts/ibhosts.in
index 20abdf3..fda0541 100644
--- a/scripts/ibhosts.in
+++ b/scripts/ibhosts.in
@@ -1,8 +1,8 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [<topology-file> | -C ca_name" \
 	    "-P ca_port -t timeout_ms]"
 	exit -1
diff --git a/scripts/ibnodes.in b/scripts/ibnodes.in
index 0726efc..5871da8 100644
--- a/scripts/ibnodes.in
+++ b/scripts/ibnodes.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
diff --git a/scripts/ibrouters.in b/scripts/ibrouters.in
index 71f4c60..ae66ca4 100644
--- a/scripts/ibrouters.in
+++ b/scripts/ibrouters.in
@@ -1,8 +1,8 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [<topology-file> | -C ca_name" \
 	    "-P ca_port -t timeout_ms]"
 	exit -1
diff --git a/scripts/ibstatus b/scripts/ibstatus
index 6f01be0..f7fbbc2 100755
--- a/scripts/ibstatus
+++ b/scripts/ibstatus
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # Usage ibstatus [devname[:port]]
 
diff --git a/scripts/ibswitches.in b/scripts/ibswitches.in
index 2a1bcae..0f3aa91 100644
--- a/scripts/ibswitches.in
+++ b/scripts/ibswitches.in
@@ -1,8 +1,8 @@
-#!/bin/bash
+#!/bin/sh
 
 IBPATH=${IBPATH:-@IBSCRIPTPATH@}
 
-function usage() {
+usage() {
 	echo Usage: `basename $0` "[-h] [<topology-file> | -C ca_name" \
 	    "-P ca_port -t timeout_ms]"
 	exit -1
diff --git a/scripts/set_nodedesc.sh b/scripts/set_nodedesc.sh
index 1f08a54..1e42ac8 100755
--- a/scripts/set_nodedesc.sh
+++ b/scripts/set_nodedesc.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ -f /etc/sysconfig/network ]; then
 . /etc/sysconfig/network
