mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-03 10:00:07 +09:00
Update test for current boot state for Buster
This commit is contained in:
parent
d33487cbea
commit
54cdabea84
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user