working alpha version

This commit is contained in:
ali
2026-06-25 08:12:43 +03:00
parent 4ac4be85f4
commit e251d09d1f
12 changed files with 381 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/bin/bash
SERIAL_PORT="/dev/ttyGS0"
stty -F "$SERIAL_PORT" raw
while true
do
if read -r line < "$SERIAL_PORT"
then
# wait for done message
if [ "$line" = "DONE" ]
then
echo "" > /sys/kernel/config/usb_gadget/g1/UDC
exit
fi
fi
sleep 0.5
done