Skip to content

Commit 58a5799

Browse files
Added linux install file missing after previous name change to this file
1 parent 7040310 commit 58a5799

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tools/linux/install.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
echo "Reloading udev rules"
9+
sudo udevadm control --reload-rules
10+
echo "Adding current user to dialout group"
11+
sudo adduser $USER dialout
12+
else
13+
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."
14+
fi
15+

0 commit comments

Comments
 (0)