3
3
#
4
4
# Author : Arturo Rinaldi
5
5
6
+ # Project URL : https://github.com/artynet/arduino-linux-setup
6
7
#
7
8
# This program is free software: you can redistribute it and/or modify
8
9
# it under the terms of the GNU General Public License as published by
18
19
# along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20
#
20
21
#
22
+ # Release v7 changelog :
23
+ #
24
+ # + Adding project URL
25
+ # + minor bugfixing
26
+ #
21
27
# Release v6 changelog :
22
28
#
23
29
# + removing sudocheck function and control
@@ -75,7 +81,7 @@ groupsfunc () {
75
81
acmrules () {
76
82
77
83
echo " "
78
- echo " Setting serial port rules"
84
+ echo " # Setting serial port rules"
79
85
echo " "
80
86
81
87
cat << EOF
88
94
openocdrules () {
89
95
90
96
echo " "
91
- echo " Adding Arduino M0/M0 Pro Rules"
97
+ echo " # Adding Arduino M0/M0 Pro, Primo UDEV Rules for CMSIS-DAP port "
92
98
echo " "
93
99
94
100
cat << EOF
107
113
108
114
avrisprules () {
109
115
116
+ echo " "
117
+ echo " # Adding AVRisp UDEV rules"
118
+ echo " "
119
+
110
120
cat << EOF
111
121
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
112
122
# Atmel Corp. JTAG ICE mkII
123
133
124
134
dfustm32rules () {
125
135
136
+ echo " "
137
+ echo " # Adding STM32 bootloader mode UDEV rules"
138
+ echo " "
139
+
126
140
cat << EOF
127
141
# Example udev rules (usually placed in /etc/udev/rules.d)
128
142
# Makes STM32 DfuSe device writeable for the "plugdev" group
@@ -141,7 +155,7 @@ removemm () {
141
155
if [ -f /etc/lsb-release -a ! -f /etc/SuSE-release ] || [ -f /etc/debian_version ] || [ -f /etc/linuxmint/info ]
142
156
then
143
157
# Only for Ubuntu/Mint/Debian
144
- sudo apt-get remove modemmanager
158
+ sudo apt-get -y remove modemmanager
145
159
elif [ -f /etc/SuSE-release ]
146
160
then
147
161
# Only for Suse
@@ -151,9 +165,9 @@ removemm () {
151
165
# Only for Red Hat/Fedora/CentOS
152
166
sudo yum remove modemmanager
153
167
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 " "
157
171
fi
158
172
159
173
}
0 commit comments