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