Skip to content

Commit

Permalink
Update Arduino_IDE.AppRun
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Aug 19, 2019
1 parent e22983c commit 48bf114
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions recipes/Arduino_IDE.AppRun
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
#!/bin/bash

HERE="$(dirname "$(readlink -f "${0}")")"

if [ ! -e /etc/udev/rules.d/50-arduino.rules ] ; then
cat > /tmp/roothelper <<\EOoF
#!/bin/bash
cat > /etc/udev/rules.d/50-arduino.rules <<\EOF
SUBSYSTEM=="tty", KERNEL=="ttyUSB[0-9]*|ttyACM[0-9]*", GROUP="users", MODE="0666"
EOF
cat > /tmp/roothelper <<\EOoF
#!/bin/bash
cat > /etc/udev/rules.d/50-arduino.rules <<\EOF
SUBSYSTEM=="tty", KERNEL=="ttyUSB[0-9]*|ttyACM[0-9]*", GROUP="users", MODE="0666"
EOF
udevadm trigger
EOoF
chmod a+x /tmp/roothelper
Expand Down

0 comments on commit 48bf114

Please sign in to comment.