diff options
-rwxr-xr-x | netbless.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netbless.sh b/netbless.sh index b604cf2..8491990 100755 --- a/netbless.sh +++ b/netbless.sh @@ -4,7 +4,7 @@ # @author Filipp Lepalaan <filipp@mcare.fi> # @package mtk -if [[ ${USER} != "root" ]]; then +if [[ ${USER} != "root" && -z ${DS_USER_LOGIN} ]]; then echo "This must be run as root" 2>&1 exit 1 fi @@ -26,7 +26,7 @@ fi ME=${1:-$(/usr/sbin/sysctl -n hw.model)} -if [[ -z $ME ]]; then +if [[ -z ${ME} ]]; then echo "Error: could not determine hardware model" 2>&1 exit 1 fi |