add build image

This commit is contained in:
tiopex
2023-03-13 13:28:06 +01:00
parent f6dbd54c41
commit fa8b4b1683
3784 changed files with 6309 additions and 122 deletions

View File

@@ -0,0 +1,16 @@
#!/bin/busybox sh
LUN_DIR=/sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/gadget
if (grep -q mmcblk0p1 "${LUN_DIR}/lun0/file"); then
echo /dev/mmcblk0p4 > "${LUN_DIR}/lun0/file"
echo /dev/mmcblk0p1 > "${LUN_DIR}/lun1/file"
elif (grep -q mmcblk0p4 "${LUN_DIR}/lun0/file"); then
echo /dev/mmcblk0p1 > "${LUN_DIR}/lun0/file"
echo /dev/mmcblk0p4 > "${LUN_DIR}/lun1/file"
else
sleep 2
echo " "
echo "No FAT partition assigned to LUN!"
echo " "
fi

View File

@@ -0,0 +1,3 @@
#!/bin/busybox sh
echo peripheral > /sys/devices/platform/soc/1c13000.usb/musb-hdrc.1.auto/mode