Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 259 Bytes

adbd-functionfs.sh

File metadata and controls

10 lines (10 loc) · 259 Bytes
 
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -e
mkdir -p /dev/usb-ffs
chmod 0770 /dev/usb-ffs
chown shell:shell /dev/usb-ffs
mkdir -p /dev/usb-ffs/adb
chmod 0770 /dev/usb-ffs/adb
chown shell:shell /dev/usb-ffs/adb
/bin/mount -t functionfs adb /dev/usb-ffs/adb -o uid=shell,gid=shell
exit 0