Skip to contentSkip to conversation

udev-extraconf: Add missing commas in udev rules

PATCH New [email protected] 1 participant 1 message Sep 21

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev-extraconf: Add missing commas in udev rules

From: Ricardo Simoes <[email protected]>

As per udev(7) man page, each key-operator-value must be separated by a comma.

```
$ udevadm verify /etc/udev/rules.d/auto*
/etc/udev/rules.d/automount.rules:17 style: a comma between tokens is expected.
/etc/udev/rules.d/automount.rules:18 style: a comma between tokens is expected.
/etc/udev/rules.d/automount.rules:19 style: a comma between tokens is expected.
/etc/udev/rules.d/automount.rules: udev rules have style issues.
/etc/udev/rules.d/autonet.rules:17 style: a comma between tokens is expected.
/etc/udev/rules.d/autonet.rules:18 style: a comma between tokens is expected.
/etc/udev/rules.d/autonet.rules: udev rules have style issues.

2 udev rules files have been checked.
  Success: 0
  Fail:    2
```

This patch fixes the errors shown above.

---
 meta/recipes-core/udev/udev-extraconf/automount.rules | 6 +++---
 meta/recipes-core/udev/udev-extraconf/autonet.rules   | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
meta/recipes-core/udev/udev-extraconf/automount.rules +3 -3
index 62578ea631..88842f5247 100644
@@ -14,6 +14,6 @@
 #
 
 # Media automounting
-SUBSYSTEM=="block", ACTION=="add"    RUN+="/etc/udev/scripts/mount.sh"
-SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh"
-SUBSYSTEM=="block", ACTION=="change", ENV{DISK_MEDIA_CHANGE}=="1" RUN+="/etc/udev/scripts/mount.sh"
+SUBSYSTEM=="block", ACTION=="add",    RUN+="/etc/udev/scripts/mount.sh"
+SUBSYSTEM=="block", ACTION=="remove", RUN+="/etc/udev/scripts/mount.sh"
+SUBSYSTEM=="block", ACTION=="change", ENV{DISK_MEDIA_CHANGE}=="1", RUN+="/etc/udev/scripts/mount.sh"
meta/recipes-core/udev/udev-extraconf/autonet.rules +2 -2
index 19676aa13b..2c02668097 100644
@@ -14,6 +14,6 @@
 #
 
 # Handle network interface setup
-SUBSYSTEM=="net", ACTION=="add" RUN+="/etc/udev/scripts/network.sh"
-SUBSYSTEM=="net", ACTION=="remove" RUN+="/etc/udev/scripts/network.sh"
+SUBSYSTEM=="net", ACTION=="add", RUN+="/etc/udev/scripts/network.sh"
+SUBSYSTEM=="net", ACTION=="remove", RUN+="/etc/udev/scripts/network.sh"
 
Signature · 1 line
2.34.1