A lot of NOTs taken out of serial test.

This commit is contained in:
spl 2016-05-25 10:58:44 +01:00
parent 2670e6ee2b
commit 1ff5c921f6
1 changed files with 3 additions and 3 deletions

View File

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