Skip to content

Commit 69420b4

Browse files
committed
Added linux udev rules scripts and rules, taken from the leaflabs Linux IDE install file
1 parent 501da92 commit 69420b4

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

drivers/linux/45-maple.rules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ATTRS{idProduct}=="1001", ATTRS{idVendor}=="0110", MODE="664", GROUP="plugdev"
2+
ATTRS{idProduct}=="1002", ATTRS{idVendor}=="0110", MODE="664", GROUP="plugdev"
3+
ATTRS{idProduct}=="0003", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple"
4+
ATTRS{idProduct}=="0004", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple"
5+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
if sudo [ -w /etc/udev/rules.d ]; then
4+
echo "Copying Maple-specific udev rules..."
5+
sudo cp -v 45-maple.rules /etc/udev/rules.d/45-maple.rules
6+
sudo chown root:root /etc/udev/rules.d/45-maple.rules
7+
sudo chmod 644 /etc/udev/rules.d/45-maple.rules
8+
else
9+
echo "Couldn't copy to /etc/udev/rules.d/; you probably have to run this script as root? Or your distribution of Linux doesn't include udev; try running the IDE itself as root."
10+
fi

0 commit comments

Comments
 (0)