Update test for current boot state for Buster

This commit is contained in:
Simon Long 2019-01-15 11:30:14 +00:00
parent d33487cbea
commit 54cdabea84
1 changed files with 2 additions and 2 deletions

View File

@ -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