Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Update Packages_Patches
Browse files Browse the repository at this point in the history
  • Loading branch information
khoih-prog authored Nov 11, 2022
1 parent 22ee5f9 commit 6dec28d
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

portenta_h7_rules () {
echo ""
echo "# Portenta H7 bootloader mode UDEV rules"
echo ""
cat <<EOF
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="035b", GROUP="plugdev", MODE="0666"
EOF
}

if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi

portenta_h7_rules > /etc/udev/rules.d/49-portenta_h7.rules

# reload udev rules
echo "Reload rules..."
udevadm trigger
udevadm control --reload-rules

0 comments on commit 6dec28d

Please sign in to comment.