Current state of serial i/f reflected in raspi-config.

This commit is contained in:
spl 2016-05-06 16:48:51 +01:00 committed by Serge Schneider
parent 6c0aa41c79
commit ba7865c9f4

View File

@ -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