diff options
-rwxr-xr-x | x60flashfrom5 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/x60flashfrom5 b/x60flashfrom5 index 1f8e0ec..5276615 100755 --- a/x60flashfrom5 +++ b/x60flashfrom5 @@ -22,6 +22,11 @@ # set -u -e -v set -v +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" + exit 1 +fi + # USE ROOT OR SUDO WHEN EXECUTING THIS # uses flashrom to flash the rom |