Bugfix for first login desktop detection
This commit is contained in:
parent
e29f55e8fe
commit
2de34f3243
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user