From 58a5799ace056f78fb007413be3bb9cc11b5e1e0 Mon Sep 17 00:00:00 2001 From: Roger Clark Date: Mon, 6 Jul 2015 09:23:01 +1000 Subject: [PATCH] Added linux install file missing after previous name change to this file --- tools/linux/install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tools/linux/install.sh diff --git a/tools/linux/install.sh b/tools/linux/install.sh new file mode 100755 index 0000000..32870a1 --- /dev/null +++ b/tools/linux/install.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +if sudo [ -w /etc/udev/rules.d ]; then + echo "Copying Maple-specific udev rules..." + sudo cp -v 45-maple.rules /etc/udev/rules.d/45-maple.rules + sudo chown root:root /etc/udev/rules.d/45-maple.rules + sudo chmod 644 /etc/udev/rules.d/45-maple.rules + echo "Reloading udev rules" + sudo udevadm control --reload-rules + echo "Adding current user to dialout group" + sudo adduser $USER dialout +else + 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." +fi +