Add root check to more scripts
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This is for the Original (Marvell based) NOT the Cubox-i (Freescale based)
|
||||
# This is for the Cubox-i (Freescale based) NOT the Marvell based original.
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
|
||||
5
cubox.sh
5
cubox.sh
@@ -2,6 +2,11 @@
|
||||
|
||||
# This is for the Original (Marvell based) NOT the Cubox-i (Freescale based)
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 1.0.1"
|
||||
exit 0
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
5
luna.sh
5
luna.sh
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 1.0.1"
|
||||
exit 0
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
# This is the FriendlyARM NanoPi2 Kali ARM build script - http://nanopi.io/
|
||||
# A trusted Kali Linux image created by Offensive Security - http://www.offensive-security.com
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
# This is the FriendlyARM NanoPi3 Kali ARM build script - http://nanopi.io/
|
||||
# A trusted Kali Linux image created by Offensive Security - http://www.offensive-security.com
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
# This is the HardKernel ODROID C Kali ARM build script - http://hardkernel.com/main/main.php
|
||||
# A trusted Kali Linux image created by Offensive Security - http://www.offensive-security.com
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
# This is the HardKernel ODROID C2 Kali ARM64 build script - http://hardkernel.com/main/main.php
|
||||
# A trusted Kali Linux image created by Offensive Security - http://www.offensive-security.com
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
# This is the HardKernel ODROID U2 Kali ARM build script - http://hardkernel.com/main/main.php
|
||||
# A trusted Kali Linux image created by Offensive Security - http://www.offensive-security.com
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
# This is the ODROID-W-DEVKIT Kali ARM build script - http://www.kali.org/downloads
|
||||
# A trusted Kali Linux image created by Offensive Security - http://www.offensive-security.com
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
# This is ODROID-W Kali ARM build script - http://www.kali.org/downloads
|
||||
# A trusted Kali Linux image created by Offensive Security - http://www.offensive-security.com
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
# This is the HardKernel ODROID XU Kali ARM build script - http://hardkernel.com/main/main.php
|
||||
# A trusted Kali Linux image created by Offensive Security - http://www.offensive-security.com
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
# This is the HardKernel ODROID XU3 Kali ARM build script - http://hardkernel.com/main/main.php
|
||||
# A trusted Kali Linux image created by Offensive Security - http://www.offensive-security.com
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
# This is the Utilite Kali ARM build script - http://utilite-computer.com/web/home
|
||||
# A trusted Kali Linux image created by Offensive Security - http://www.offensive-security.com
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo "Please pass version number, e.g. $0 2.0"
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user