config/yadm: Reload udev rules in bootstrap

This commit is contained in:
xerus2000 2020-10-07 21:48:16 +02:00
parent bf9897af35
commit 8a1530d690
3 changed files with 7 additions and 2 deletions

1
.config/yadm/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
repo.git

2
.config/yadm/.mailmap Normal file
View File

@ -0,0 +1,2 @@
Janek <27jf@pm.me>
Janek <27jf@web.de>

View File

@ -16,8 +16,10 @@ sudo sed -i 's/#HandleLidSwitch=suspend/HandleLidSwitch=ignore/' /etc/systemd/lo
# Fix Chrysalis for keyboardio - https://github.com/keyboardio/Chrysalis/wiki/Troubleshooting # Fix Chrysalis for keyboardio - https://github.com/keyboardio/Chrysalis/wiki/Troubleshooting
if test ! -f /etc/udev/rules.d/keyboardio.rules; then if test ! -f /etc/udev/rules.d/keyboardio.rules; then
echo 'SUBSYSTEM=="tty", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="230[0-3]", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/keyboardio.rules echo 'SUBSYSTEM=="tty", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="230[0-3]", SYMLINK+="model01", TAG+="seat", TAG+="uaccess", RUN+="/home/janek/.local/bin/update-keyboard-layout.sh"' | sudo tee /etc/udev/rules.d/keyboardio.rules
sudo systemctl disable ModemManager sudo udevadm control -R
sudo udevadm trigger -v /dev/ttyACM0
#sudo systemctl disable ModemManager
fi fi
## Software ## Software