mirror of
				https://github.com/brain-hackers/brain-config.git
				synced 2025-11-04 14:38:36 +09:00 
			
		
		
		
	Test functions added for remote GPIO and slow boot.
This commit is contained in:
		
							
								
								
									
										16
									
								
								raspi-config
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								raspi-config
									
									
									
									
									
								
							@@ -773,6 +773,14 @@ do_boot_behaviour_new() {
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
get_boot_fast() {
 | 
			
		||||
  if test -e /etc/systemd/system/dhcpcd.service.d/wait.conf; then
 | 
			
		||||
    echo 1
 | 
			
		||||
  else
 | 
			
		||||
    echo 0
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
do_wait_for_network() {
 | 
			
		||||
  get_init_sys
 | 
			
		||||
  if [ $SYSTEMD -eq 0 ]; then
 | 
			
		||||
@@ -810,6 +818,14 @@ EOF
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
get_rgpio() {
 | 
			
		||||
  if test -e /etc/systemd/system/pigpiod.service.d/public.conf; then
 | 
			
		||||
    echo 0
 | 
			
		||||
  else
 | 
			
		||||
    echo 1
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
do_gpiosec() {
 | 
			
		||||
  get_init_sys
 | 
			
		||||
  if [ $SYSTEMD -eq 0 ]; then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user