diff options
-rwxr-xr-x | lenovobios_secondflash | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lenovobios_secondflash b/lenovobios_secondflash index c0a1cc8..9c5ec10 100755 --- a/lenovobios_secondflash +++ b/lenovobios_secondflash @@ -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 # for T60 or X60 owners with Lenovo BIOS |