pxt-ev3/brick/ins

23 lines
372 B
Plaintext
Raw Normal View History

2017-07-25 13:15:59 +02:00
#!/bin/sh
set -ex
cd /mnt/ramdisk/prjs/ko
insmod ./nbd.ko
sleep 1
./nbd-serv &
sleep 1
insmod ./d_usbdev.ko file=/dev/nbd0 HostStr=EV3 SerialStr=0016535543af
L=/sys/devices/platform/musb_hdrc/gadget/lun0
echo $L
echo -n "ent: "
read LINE
#echo > $L/file
echo 3 > $L/reset
killall nbd-serv
sleep 1
./nbd-serv &
sleep 1
#echo /dev/nbd0 > $L/file
#sleep 1
echo 4 > $L/reset