From 54cdabea84ff5477483909bcf16e0c64b9e85375 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Tue, 15 Jan 2019 11:30:14 +0000 Subject: [PATCH] Update test for current boot state for Buster --- raspi-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raspi-config b/raspi-config index 4891a05..a55a23f 100755 --- a/raspi-config +++ b/raspi-config @@ -918,8 +918,8 @@ get_boot_cli() { get_autologin() { if [ $(get_boot_cli) -eq 0 ]; then - # booting to CLI - check the autologin in getty or initd */ - if grep -q autologin /etc/systemd/system/getty.target.wants/getty@tty1.service ; then + # booting to CLI - is there an autologin conf file? */ + if [ -e /etc/systemd/system/getty@tty1.service.d/autologin.conf ] ; then echo 0 else echo 1