33#
44# Author : Arturo Rinaldi
556+ # Project URL : https://github.com/artynet/arduino-linux-setup
67#
78# This program is free software: you can redistribute it and/or modify
89# it under the terms of the GNU General Public License as published by
1819# along with this program. If not, see <http://www.gnu.org/licenses/>.
1920#
2021#
22+ # Release v7 changelog :
23+ #
24+ # + Adding project URL
25+ # + minor bugfixing
26+ #
2127# Release v6 changelog :
2228#
2329# + removing sudocheck function and control
@@ -75,7 +81,7 @@ groupsfunc () {
7581acmrules () {
7682
7783 echo " "
78- echo " Setting serial port rules"
84+ echo " # Setting serial port rules"
7985 echo " "
8086
8187cat << EOF
8894openocdrules () {
8995
9096 echo " "
91- echo " Adding Arduino M0/M0 Pro Rules"
97+ echo " # Adding Arduino M0/M0 Pro, Primo UDEV Rules for CMSIS-DAP port "
9298 echo " "
9399
94100cat << EOF
107113
108114avrisprules () {
109115
116+ echo " "
117+ echo " # Adding AVRisp UDEV rules"
118+ echo " "
119+
110120cat << EOF
111121SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
112122# Atmel Corp. JTAG ICE mkII
123133
124134dfustm32rules () {
125135
136+ echo " "
137+ echo " # Adding STM32 bootloader mode UDEV rules"
138+ echo " "
139+
126140cat << EOF
127141# Example udev rules (usually placed in /etc/udev/rules.d)
128142# Makes STM32 DfuSe device writeable for the "plugdev" group
@@ -141,7 +155,7 @@ removemm () {
141155 if [ -f /etc/lsb-release -a ! -f /etc/SuSE-release ] || [ -f /etc/debian_version ] || [ -f /etc/linuxmint/info ]
142156 then
143157 # Only for Ubuntu/Mint/Debian
144- sudo apt-get remove modemmanager
158+ sudo apt-get -y remove modemmanager
145159 elif [ -f /etc/SuSE-release ]
146160 then
147161 # Only for Suse
@@ -151,9 +165,9 @@ removemm () {
151165 # Only for Red Hat/Fedora/CentOS
152166 sudo yum remove modemmanager
153167 else
154- echo " "
155- echo " Your system is not supported, please take care of it with your package manager"
156- echo " "
168+ echo " "
169+ echo " Your system is not supported, please take care of it with your package manager"
170+ echo " "
157171 fi
158172
159173}
0 commit comments