mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-22 11:20:07 +09:00
Check systemctl to determine current CLI/desktop boot status.
This commit is contained in:
parent
beb9caac53
commit
98887bc18d
@ -820,7 +820,7 @@ disable_raspi_config_at_boot() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_boot_cli() {
|
get_boot_cli() {
|
||||||
if service lightdm status | grep -q inactive; then
|
if systemctl get-default | grep -q multi-user ; then
|
||||||
echo 0
|
echo 0
|
||||||
else
|
else
|
||||||
echo 1
|
echo 1
|
||||||
|
Loading…
Reference in New Issue
Block a user