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

View File

@ -918,8 +918,8 @@ get_boot_cli() {
get_autologin() { get_autologin() {
if [ $(get_boot_cli) -eq 0 ]; then if [ $(get_boot_cli) -eq 0 ]; then
# booting to CLI - check the autologin in getty or initd */ # booting to CLI - is there an autologin conf file? */
if grep -q autologin /etc/systemd/system/getty.target.wants/getty@tty1.service ; then if [ -e /etc/systemd/system/getty@tty1.service.d/autologin.conf ] ; then
echo 0 echo 0
else else
echo 1 echo 1