From b74a04eedaeba86926953e346754814e1f956a62 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 10 May 2011 18:48:24 +0300 Subject: Added check for DS --- netbless.sh | 4 ++-- 1 file 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 # @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 -- cgit v1.2.3