Added root elevation rights
This commit is contained in:
parent
176c4d3497
commit
4b09c5259e
1 changed files with 7 additions and 0 deletions
|
@ -58,6 +58,13 @@ while [ $# -gt 0 ]; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ $EUID -ne 0 ]]; then
|
||||||
|
echo "This script must be run as root" 1>&2
|
||||||
|
sudo $0
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "${ARCHIVE}" != "" ] ; then
|
if [ "${ARCHIVE}" != "" ] ; then
|
||||||
FILE=`basename "$ARCHIVE"`
|
FILE=`basename "$ARCHIVE"`
|
||||||
KERNEL=`echo ${FILE}|sed 's/linux-//'|sed "s/\.${EXTENSION}//"`
|
KERNEL=`echo ${FILE}|sed 's/linux-//'|sed "s/\.${EXTENSION}//"`
|
||||||
|
|
Loading…
Reference in a new issue