mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
minor bugfixing for arduino-linux-setup.sh script
* fixing release notes * adding Atmel ICE Debugger rule for OpenOCD
This commit is contained in:
parent
33ff49566c
commit
283e17b569
22
build/linux/dist/arduino-linux-setup.sh
vendored
22
build/linux/dist/arduino-linux-setup.sh
vendored
@ -19,6 +19,11 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
# Release v11 changelog :
|
||||||
|
#
|
||||||
|
# + Fixing ModemManager removal for Fedora Core
|
||||||
|
# + Adding Atmel ICE Debugger CMSIS-DAP rule
|
||||||
|
#
|
||||||
# Release v10 changelog :
|
# Release v10 changelog :
|
||||||
#
|
#
|
||||||
# + Adding support for Slackware
|
# + Adding support for Slackware
|
||||||
@ -62,6 +67,8 @@
|
|||||||
# + now the script checks for SUDO permissions
|
# + now the script checks for SUDO permissions
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# if [[ $EUID != 0 ]] ; then
|
# if [[ $EUID != 0 ]] ; then
|
||||||
# echo This must be run as root!
|
# echo This must be run as root!
|
||||||
# exit 1
|
# exit 1
|
||||||
@ -91,8 +98,11 @@ groupsfunc () {
|
|||||||
echo "******* Add User to dialout,tty, uucp, plugdev groups *******"
|
echo "******* Add User to dialout,tty, uucp, plugdev groups *******"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
sudo groupadd plugdev
|
sudo groupadd tty
|
||||||
sudo groupadd dialout
|
sudo groupadd dialout
|
||||||
|
sudo groupadd uucp
|
||||||
|
sudo groupadd plugdev
|
||||||
|
|
||||||
sudo usermod -a -G tty $1
|
sudo usermod -a -G tty $1
|
||||||
sudo usermod -a -G dialout $1
|
sudo usermod -a -G dialout $1
|
||||||
sudo usermod -a -G uucp $1
|
sudo usermod -a -G uucp $1
|
||||||
@ -116,7 +126,7 @@ EOF
|
|||||||
openocdrules () {
|
openocdrules () {
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "# Adding Arduino M0/M0 Pro, Primo UDEV Rules for CMSIS-DAP port"
|
echo "# Adding Arduino M0/M0 Pro, Primo, Atmel ICE Debugger UDEV Rules for CMSIS-DAP port"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
@ -125,6 +135,9 @@ SUBSYSTEM!="usb|tty|hidraw", GOTO="openocd_rules_end"
|
|||||||
|
|
||||||
#Please keep this list sorted by VID:PID
|
#Please keep this list sorted by VID:PID
|
||||||
|
|
||||||
|
#Atmel ICE Debugger
|
||||||
|
ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2141", MODE="664", GROUP="plugdev", TAG+="uaccess"
|
||||||
|
|
||||||
#CMSIS-DAP compatible adapters
|
#CMSIS-DAP compatible adapters
|
||||||
ATTRS{product}=="*CMSIS-DAP*", MODE="664", GROUP="plugdev"
|
ATTRS{product}=="*CMSIS-DAP*", MODE="664", GROUP="plugdev"
|
||||||
|
|
||||||
@ -194,7 +207,8 @@ removemm () {
|
|||||||
elif [ -f /etc/fedora-release ] || [ -f /etc/redhat-release ]
|
elif [ -f /etc/fedora-release ] || [ -f /etc/redhat-release ]
|
||||||
then
|
then
|
||||||
#Only for Red Hat/Fedora/CentOS
|
#Only for Red Hat/Fedora/CentOS
|
||||||
sudo yum remove modemmanager
|
sudo rpm -e --nodeps ModemManager
|
||||||
|
sudo rpm -e --nodeps ModemManager-glib
|
||||||
elif [ -f /etc/arch-release ]
|
elif [ -f /etc/arch-release ]
|
||||||
then
|
then
|
||||||
#Only for ArchLinux
|
#Only for ArchLinux
|
||||||
@ -206,7 +220,7 @@ removemm () {
|
|||||||
elif [ -f /etc/lsb-release ] || [ -f /etc/debian_version ] || [ -f /etc/linuxmint/info ]
|
elif [ -f /etc/lsb-release ] || [ -f /etc/debian_version ] || [ -f /etc/linuxmint/info ]
|
||||||
then
|
then
|
||||||
#Only for Ubuntu/Mint/Debian
|
#Only for Ubuntu/Mint/Debian
|
||||||
sudo apt-get -y remove modemmanager
|
sudo apt-get -y purge modemmanager
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
echo "Your system is not supported, please remove the ModemManager package with your package manager!"
|
echo "Your system is not supported, please remove the ModemManager package with your package manager!"
|
||||||
|
Loading…
Reference in New Issue
Block a user