From 804ae3fcb6cb524c3f5cb6b6d9fef77b252cbbd8 Mon Sep 17 00:00:00 2001 From: TheBlueOompaLoompa Date: Thu, 25 Dec 2025 18:50:31 -0600 Subject: [PATCH] Fix udev rule quotes --- README.md | 2 +- add-udev-rules.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c7cf1da..c636e86 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ YAFI is also available on [Flathub](https://flathub.org/en/apps/au.stevetech.yaf ### Linux -To allow YAFI to communicate with the EC, you will need to enable user access to the `/dev/cros_ec` device. You can do this by running `echo KERNEL=="cros_ec", TAG+="uaccess" | sudo tee /etc/udev/rules.d/60-yafi.rules`, and then reload the rules with `sudo udevadm control --reload-rules && sudo udevadm trigger`. +To allow YAFI to communicate with the EC, you will need to enable user access to the `/dev/cros_ec` device. You can do this by running `echo KERNEL==\"cros_ec\", TAG+=\"uaccess\" | sudo tee /etc/udev/rules.d/60-yafi.rules`, and then reload the rules with `sudo udevadm control --reload-rules && sudo udevadm trigger`. You can also do this by running `curl -Lfs yafi.stevetech.au/udev.sh | sudo sh` which will run the [`add-udev-rules.sh`](add-udev-rules.sh) script. diff --git a/add-udev-rules.sh b/add-udev-rules.sh index bc88c57..7405716 100755 --- a/add-udev-rules.sh +++ b/add-udev-rules.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e echo Installing udev rules for YAFI to /etc/udev/rules.d/60-yafi.rules -echo KERNEL=="cros_ec", TAG+="uaccess" > /etc/udev/rules.d/60-yafi.rules +echo KERNEL==\"cros_ec\", TAG+=\"uaccess\" > /etc/udev/rules.d/60-yafi.rules udevadm control --reload-rules udevadm trigger echo udev rules installed successfully.