Skip to content

Commit a3cc5fb

Browse files
committed
adding project URL and minor bugfixing
1 parent 30a5395 commit a3cc5fb

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

Diff for: build/linux/dist/arduino-linux-setup.sh

+20-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44
# Author : Arturo Rinaldi
55
6+
# 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
@@ -18,6 +19,11 @@
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 () {
7581
acmrules () {
7682

7783
echo ""
78-
echo "Setting serial port rules"
84+
echo "# Setting serial port rules"
7985
echo ""
8086

8187
cat <<EOF
@@ -88,7 +94,7 @@ EOF
8894
openocdrules () {
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

94100
cat <<EOF
@@ -107,6 +113,10 @@ EOF
107113

108114
avrisprules () {
109115

116+
echo ""
117+
echo "# Adding AVRisp UDEV rules"
118+
echo ""
119+
110120
cat <<EOF
111121
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
112122
# Atmel Corp. JTAG ICE mkII
@@ -123,6 +133,10 @@ EOF
123133

124134
dfustm32rules () {
125135

136+
echo ""
137+
echo "# Adding STM32 bootloader mode UDEV rules"
138+
echo ""
139+
126140
cat <<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

Comments
 (0)