diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-11-24 13:19:12 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-11-24 13:19:12 (EST) |
commit | 92a3bcb85ffa10d3216fe95a39857d299807b737 (patch) | |
tree | 888fc278a419883109072ae96461fe077243fd68 /lenovobios_firstflash | |
parent | 7b1b072d9aef3da652eca8d9fb038740c3c8fd53 (diff) | |
download | libreboot-92a3bcb85ffa10d3216fe95a39857d299807b737.zip libreboot-92a3bcb85ffa10d3216fe95a39857d299807b737.tar.gz libreboot-92a3bcb85ffa10d3216fe95a39857d299807b737.tar.bz2 |
lenovobios_firstflash: check if user is root
Diffstat (limited to 'lenovobios_firstflash')
-rwxr-xr-x | lenovobios_firstflash | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lenovobios_firstflash b/lenovobios_firstflash index 4b25c13..b3084c1 100755 --- a/lenovobios_firstflash +++ b/lenovobios_firstflash @@ -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 |