3 # Contributor: Chris Down <cdown.uk@gmail.com>
5 # Wrapper for gmabooster to prompt that it should be run as root
7 # We don't want to simply block root or check for the existence of su/sudo,
8 # as the user might be running in a fakeroot environment, etc...
9 # (and even if we aren't root, let's assume the user knows what they're doing)
11 if [[ "${EUID}" -eq 0 ]]; then
12 /opt
/GMABooster
/GMABooster
"$@"
13 # Store it in a variable so we can exit with the same return code
16 echo "GMABooster should be run as root to function properly."
19 read -p "Do you wish to continue anyway? (y/n): " DOCONT
22 /opt
/GMABooster
/GMABooster
"$@"
26 *) echo "Please enter y or n." ;;
31 # Exit with the same return code as gmabooster
32 # (We shouldn't ever get down to here... but just in case)