Added root elevation rights

This commit is contained in:
dbroqua 2020-05-07 08:40:12 +02:00
parent 176c4d3497
commit 4b09c5259e

View File

@ -58,6 +58,13 @@ while [ $# -gt 0 ]; do
shift
done
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
sudo $0
exit 1
fi
if [ "${ARCHIVE}" != "" ] ; then
FILE=`basename "$ARCHIVE"`
KERNEL=`echo ${FILE}|sed 's/linux-//'|sed "s/\.${EXTENSION}//"`