mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-03 10:00:07 +09:00
Current state of serial i/f reflected in raspi-config.
This commit is contained in:
parent
6c0aa41c79
commit
ba7865c9f4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user