summarylogtreecommitdiffstats
path: root/spi_ch341_usb_setup.sh
blob: 4247e4fd3f5bc0e7827ef853e44a294f6caa1143 (plain)
1
2
3
4
5
#!/bin/bash

for i in /sys/bus/usb/drivers/spi-ch341-usb/*/spi_master/spi*/spi*.*; do
    echo spidev > $i/driver_override; echo $(basename $i) > /sys/bus/spi/drivers/spidev/bind
done