Skip to content

Added Linux post install script #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added a simple post install script for Linux environment to fix the U…
…DEV rules
  • Loading branch information
StarDev-it committed Aug 5, 2023
commit 4a1a501d7ab9c58daa985daa32f7f842c5dd7ef2
4 changes: 2 additions & 2 deletions post_install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

arduino_mbed_rules () {
arduino_esp32_rules () {
echo ""
echo "# Arduino ESP32 bootloader mode udev rules"
echo ""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a particularly weird mixture of echo and "here" documents. Simply use one "here" document.

Expand All @@ -14,7 +14,7 @@ if [ "$EUID" -ne 0 ]
exit
fi

arduino_mbed_rules > /etc/udev/rules.d/60-arduino-esp32.rules
arduino_esp32_rules > /etc/udev/rules.d/60-arduino-esp32.rules

# reload udev rules
echo "Reload rules..."
Expand Down