mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
board/raspberrypi/post-image.sh: add multi arg support
Add possibility to supply multiple arguments to post-image.sh Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com> [Arnout: indent esac, suggested by Gaël PORTAY] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
18d51abb8b
commit
39576d0f73
@ -5,7 +5,9 @@ BOARD_NAME="$(basename ${BOARD_DIR})"
|
||||
GENIMAGE_CFG="${BOARD_DIR}/genimage-${BOARD_NAME}.cfg"
|
||||
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
|
||||
|
||||
case "${2}" in
|
||||
for arg in "$@"
|
||||
do
|
||||
case "${arg}" in
|
||||
--add-pi3-miniuart-bt-overlay)
|
||||
if ! grep -qE '^dtoverlay=' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
|
||||
echo "Adding 'dtoverlay=pi3-miniuart-bt' to config.txt (fixes ttyAMA0 serial console)."
|
||||
@ -36,7 +38,9 @@ enable_uart=1
|
||||
__EOF__
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
done
|
||||
|
||||
rm -rf "${GENIMAGE_TMP}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user