Skip to content

Commit bf9c569

Browse files
facchinmSidLeung
authored andcommitted
Move create_dfu_udev_rule from loader to core
1 parent 07ac10a commit bf9c569

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

scripts/create_dfu_udev_rule

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
#
3+
4+
if [ "$(id -u)" != "0" ]; then
5+
echo "This script must be run as root"
6+
exit
7+
fi
8+
9+
NAME=99-arduino-101.rules
10+
11+
echo >/etc/udev/rules.d/$NAME
12+
echo \# Arduino 101 in DFU Mode >>/etc/udev/rules.d/$NAME
13+
echo SUBSYSTEM==\"tty\", ENV{ID_REVISION}==\"8087\", ENV{ID_MODEL_ID}==\"0ab6\", MODE=\"0666\", ENV{ID_MM_DEVICE_IGNORE}=\"1\", ENV{ID_MM_CANDIDATE}=\"0\" >>/etc/udev/rules.d/$NAME
14+
echo SUBSYSTEM==\"usb\", ATTR{idVendor}==\"8087\", ATTR{idProduct}==\"0aba\", MODE=\"0666\", ENV{ID_MM_DEVICE_IGNORE}=\"1\" >>/etc/udev/rules.d/$NAME
15+
16+
udevadm control --reload-rules
17+
udevadm trigger

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy