Check systemctl to determine current CLI/desktop boot status.

This commit is contained in:
Simon Long 2017-02-17 15:55:35 +00:00
parent beb9caac53
commit 98887bc18d
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ disable_raspi_config_at_boot() {
}
get_boot_cli() {
if service lightdm status | grep -q inactive; then
if systemctl get-default | grep -q multi-user ; then
echo 0
else
echo 1