keyboards/iris-ce/flash.bash

27 lines
543 B
Bash
Raw Normal View History

2024-06-26 10:33:54 -05:00
#!/usr/bin/env bash
# TODO: cd dirname $0
cp ./config.h ~/qmk_firmware/keyboards/keebio/iris_ce/keymaps/lytedev
cp ./rules.mk ~/qmk_firmware/keyboards/keebio/iris_ce/keymaps/lytedev
cp ./keymap.c ~/qmk_firmware/keyboards/keebio/iris_ce/keymaps/lytedev
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