diff --git a/TestScripts/governor.sh b/TestScripts/governor.sh index 982e1b89..a1f571d0 100755 --- a/TestScripts/governor.sh +++ b/TestScripts/governor.sh @@ -12,6 +12,11 @@ if [[ -z "$BASH_SOURCE" ]]; then BASH_SOURCE="$0" fi +if [[ "$EUID" -ne 0 ]]; then + echo "This script must be run as root" + [[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1 +fi + if [ "x$1" = "x" ]; then echo "usage: $0 on[demand]|pe[rformance]|po[wersave]|us[erspace]?" [[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1