Onda mw825up

Un modo barbaro ma funzionale

sudo -s

cat >/etc/udev/rules.d/20-onda_mw825up.rules <<EOF
SYSFS{idVendor}=="1ee8",SYSFS{idProduct}=="0009",RUN+="/usr/bin/eject %k"
SYSFS{idVendor}=="1ee8",SYSFS{idProduct}=="0007",RUN+="/etc/onda_mw825up.sh 1ee8:0007 %k"
EOF

cat >/etc/onda_mw825up.sh  <<EOF
#!/bin/sh
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
if test "$2" = "ttyACM1"; then
  while lsusb | grep -q " $1 "; do
    if test -c /dev/$2; then
    ln -sf /dev/ttyACM0 /dev/$2
    break
    fi
    sleep 1
  done
fi
EOF
chmod a+x /etc/onda_mw825up.sh
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.