keyboards/iris-ce/flash.bash

28 lines
604 B
Bash
Raw Normal View History

2024-06-26 10:33:54 -05:00
#!/usr/bin/env bash
# TODO: cd dirname $0
2024-06-27 10:58:52 -05:00
cd "$(dirname "$0")" || exit 1
2024-06-26 10:33:54 -05:00
2024-06-27 12:26:34 -05:00
rsync -hvrPt ./config.h ~/qmk_firmware/keyboards/keebio/iris_ce/keymaps/lytedev
rsync -hvrPt ./rules.mk ~/qmk_firmware/keyboards/keebio/iris_ce/keymaps/lytedev
rsync -hvrPt ./keymap.c ~/qmk_firmware/keyboards/keebio/iris_ce/keymaps/lytedev
2024-06-26 10:33:54 -05:00
2024-06-27 10:44:39 -05:00
(
while true; do
echo "Trying to mount RPI-RP2..."
if udisksctl mount -b /dev/disk/by-label/RPI-RP2; then
exit 0
fi
sleep 1
done
) &
if qmk flash --keyboard keebio/iris_ce/rev1 -km lytedev; then
echo "Flashing complete!"
kill %1
exit 0
fi
kill %1
exit 1