0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-07-06 17:23:08 +00:00
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