Files
bootrr/helpers/bootrr-auto
Dmitry Baryshkov 5f9f7904ab bootrr-auto: switch to using sh
There is nothing bash-specific in bootrr-auto, we can safely use /bin/sh
instead. Verified with dash and with busybox sh.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2021-11-01 11:48:12 -05:00

12 lines
242 B
Bash
Executable File

#!/bin/sh
$(pwd)/helpers/bootrr-generic-tests
for TEST in $(tr "\0" "\n" < /proc/device-tree/compatible); do
if [ -x "/usr/bin/${TEST}" ]; then
/usr/bin/${TEST}
elif [ -x "$(pwd)/boards/${TEST}" ]; then
$(pwd)/boards/${TEST}
fi
done