1
0
This repository has been archived on 2024-11-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2019-09-24 21:08:38 +01:00

13 lines
238 B
Bash
Executable File

#!/bin/sh
ALIASES="/proc/device-tree/aliases"
UARTX="uart${1}"
if [ $(cat ${ALIASES}/${UARTX}) = $(cat ${ALIASES}/serial0) ]; then
echo 0
elif [ $(cat ${ALIASES}/${UARTX}) = $(cat ${ALIASES}/serial1) ]; then
echo 1
else
exit 1
fi