From 2de34f3243fde4049f99f8673209e12516e097ab Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Wed, 30 Aug 2017 21:07:42 +0300 Subject: [PATCH] Bugfix for first login desktop detection --- packages/bsp/common/etc/profile.d/check_first_login.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bsp/common/etc/profile.d/check_first_login.sh b/packages/bsp/common/etc/profile.d/check_first_login.sh index b37228682c..7bdf785717 100644 --- a/packages/bsp/common/etc/profile.d/check_first_login.sh +++ b/packages/bsp/common/etc/profile.d/check_first_login.sh @@ -62,8 +62,8 @@ add_user() if [ -f /root/.not_logged_in_yet ] && [ -n "$BASH_VERSION" ] && [ "$-" != "${-#*i}" ]; then # detect desktop - if [ $(dpkg-query -W -f='${db:Status-Abbrev}\n' nodm 2>/dev/null) <> "*ii*" ]; then DESKTOPDETECT="nodm"; fi - if [ $(dpkg-query -W -f='${db:Status-Abbrev}\n' lightdm 2>/dev/null) <> "*ii*" ]; then DESKTOPDETECT="lightdm"; fi + if [ $(dpkg-query -W -f='${db:Status-Abbrev}\n' nodm 2>/dev/null) != "*ii*" ]; then DESKTOPDETECT="nodm"; fi + if [ $(dpkg-query -W -f='${db:Status-Abbrev}\n' lightdm 2>/dev/null) != "*ii*" ]; then DESKTOPDETECT="lightdm"; fi if [ "$IMAGE_TYPE" != "nightly" ]; then echo -e "\n\e[0;31mThank you for choosing Armbian! Support: \e[1m\e[39mwww.armbian.com\x1B[0m\n"