diff --git a/board/cubietech/cubieboard/mkcubiecard.sh b/board/cubietech/cubieboard/mkcubiecard.sh index 34afc8708..f1d5a9fb4 100755 --- a/board/cubietech/cubieboard/mkcubiecard.sh +++ b/board/cubietech/cubieboard/mkcubiecard.sh @@ -28,7 +28,7 @@ if [ $# -ne 2 ]; then exit 1; fi -if [ $EUID -ne 0 ]; then +if [ `id -u` -ne 0 ]; then echo "This script must be run as root" 1>&2 exit 1 fi