aboutsummaryrefslogtreecommitdiff
path: root/flash
diff options
context:
space:
mode:
Diffstat (limited to 'flash')
-rwxr-xr-xflash5
1 files changed, 5 insertions, 0 deletions
diff --git a/flash b/flash
index 91d4b879..fdc13d61 100755
--- a/flash
+++ b/flash
@@ -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