Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (14 sloc) 299 Bytes
#/bin/sh
rpi3="192.168.0.21"
modprobe vhci-hcd
allusb=$(usbip list -p -r $rpi3 | cut -d":" -f1 -s | sed 's|^[ \t]*||;/^$/d')
for busid in $allusb
do
if [[ $busid = "1-1.1" ]]
then
# ignoring usb ethernet
continue
fi
echo "Attaching $busid"
usbip attach --remote=$rpi3 --busid=$busid
done