From 98887bc18d9ff37e1ab7d373af4040d87cfb8332 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Fri, 17 Feb 2017 15:55:35 +0000 Subject: [PATCH] Check systemctl to determine current CLI/desktop boot status. --- raspi-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspi-config b/raspi-config index cc43a6b..651f4f9 100755 --- a/raspi-config +++ b/raspi-config @@ -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