mirror of
				https://github.com/brain-hackers/brain-config.git
				synced 2025-11-04 06:28:39 +09:00 
			
		
		
		
	Current state of serial i/f reflected in raspi-config.
This commit is contained in:
		@@ -682,7 +682,8 @@ do_i2c() {
 | 
			
		||||
 | 
			
		||||
do_serial() {
 | 
			
		||||
  DEFAULT=
 | 
			
		||||
  if ! grep -q "console=ttyAMA0" /boot/cmdline.txt && ! grep -q "console=serial0" /boot/cmdline.txt ; then
 | 
			
		||||
  CUR_SERIAL=$(get_serial)
 | 
			
		||||
  if [ $CUR_SERIAL -eq 1 ] ; then
 | 
			
		||||
      DEFAULT=--defaultno
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user