mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
A lot of NOTs taken out of serial test.
This commit is contained in:
parent
2670e6ee2b
commit
1ff5c921f6
@ -648,14 +648,14 @@ do_i2c() {
|
||||
}
|
||||
|
||||
get_serial() {
|
||||
if ! grep -q "ttyAMA" /proc/cmdline ; then
|
||||
if ! grep -q -E "^enable_uart=1" $CONFIG; then
|
||||
if grep -q "ttyAMA" /proc/cmdline ; then
|
||||
if grep -q -E "^enable_uart=0" $CONFIG; then
|
||||
echo 1
|
||||
else
|
||||
echo 0
|
||||
fi
|
||||
else
|
||||
if ! grep -q -E "^enable_uart=0" $CONFIG; then
|
||||
if grep -q -E "^enable_uart=1" $CONFIG; then
|
||||
echo 0
|
||||
else
|
||||
echo 1
|
||||
|
Loading…
Reference in New Issue
Block a user