diff --git a/build/linux/dist/arduino-linux-setup.sh b/build/linux/dist/arduino-linux-setup.sh
index c98a6ce31..35f31ea42 100755
--- a/build/linux/dist/arduino-linux-setup.sh
+++ b/build/linux/dist/arduino-linux-setup.sh
@@ -2,7 +2,7 @@
# Copyright (C) 2015 Arduino Srl
#
# Author : Arturo Rinaldi
-# E-mail : arturo@arduino.org
+# E-mail : arty.net2@gmail.com
# Project URL : https://github.com/artynet/arduino-linux-setup
#
# This program is free software: you can redistribute it and/or modify
@@ -18,6 +18,19 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
#
+# Release v10 changelog :
+#
+# + Adding support for Slackware
+# + Changed distribution not supported message
+# + Changed distribution check sort order (thanks to thenktor @github.com)
+# + Small fix for ArchLinux
+#
+# Release v9 changelog :
+#
+# + Adding support for ArchLinux
+# + Adding support for systemd
+# + Fixing a couple of wrong kernel entries
+#
# Release v8 changelog :
#
# + rules are now created in /tmp folder
@@ -48,7 +61,7 @@
# + now the script checks for SUDO permissions
#
-#! /bin/bash
+#!/bin/bash
# if [[ $EUID != 0 ]] ; then
# echo This must be run as root!
@@ -61,10 +74,16 @@ refreshudev () {
echo "Restarting udev"
echo ""
- sudo service udev restart
sudo udevadm control --reload-rules
sudo udevadm trigger
+ if [ -d /lib/systemd/ ]
+ then
+ sudo systemctl restart systemd-udevd
+ else
+ sudo service udev restart
+ fi
+
}
groupsfunc () {
@@ -73,10 +92,11 @@ groupsfunc () {
echo "******* Add User to dialout,tty, uucp, plugdev groups *******"
echo ""
+ sudo groupadd plugdev
+ sudo groupadd dialout
sudo usermod -a -G tty $1
sudo usermod -a -G dialout $1
sudo usermod -a -G uucp $1
- sudo groupadd plugdev
sudo usermod -a -G plugdev $1
}
@@ -88,8 +108,8 @@ acmrules () {
echo ""
cat <