From 92a3bcb85ffa10d3216fe95a39857d299807b737 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Mon, 24 Nov 2014 13:19:12 -0500 Subject: lenovobios_firstflash: check if user is root --- 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 -- cgit v0.9.1