summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Wiesner <sebastian@swsnr.de>2021-03-21 12:01:04 +0100
committerSebastian Wiesner <sebastian@swsnr.de>2021-03-21 12:01:04 +0100
commitf512ffc4374435ccbb12b53693083405784138b9 (patch)
treef28229558494e0b3cdad6cdf413513ba764209c1
parent8937bcad9d778c07e7ff57cdf613182101017f54 (diff)
Update rules in install script
-rwxr-xr-xinstall.linux.sh17
1 files changed, 3 insertions, 14 deletions
diff --git a/install.linux.sh b/install.linux.sh
index 5ae646f..c0984a9 100755
--- a/install.linux.sh
+++ b/install.linux.sh
@@ -35,20 +35,9 @@ for key in ${!packageAA[@]}; do
which $key && sudo $key install -y ${packageAA[$key]}
done
-# WALLY UDEV RULE FOR DEVICE RELATED EVENT
-cat <<EOF | sudo tee /etc/udev/rules.d/50-wally.rules
-# Teensy rules for the Ergodox EZ
-ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"
-ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1"
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666"
-KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666"
-# STM32 rules for the Moonlander and Planck EZ
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666", SYMLINK+="stm32_dfu"
-EOF
-
-# ADD USER TO PLUGDEV GROUP
-sudo groupadd plugdev
-sudo usermod -aG plugdev $USER
+# UDEV RULES
+install -m644 -t /etc/udev/rules.d/ \
+ dist/linux64/50-oryx.rules dist/linux64/50-wally.rules
# HARDWARE PLATFORM DEPENDENT WALLY
if [[ "$(uname -i)" =~ 'x86' ]]; then