From 5ba7c52b0665b820d3b8fb7dda0c2384fa967d6c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 24 Jul 2017 16:32:00 +0200 Subject: [PATCH] gpsd: Update udev rules syntax for u-blox 4 Fixes following error during boot: systemd-udevd[1953]: Invalid rule /etc/udev/rules.d/60-gpsd.rules:43: unknown key 'SYSFS{idVendor}' --- recipes-extra/gpsd/gpsd/60-gpsd.rules | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes-extra/gpsd/gpsd/60-gpsd.rules b/recipes-extra/gpsd/gpsd/60-gpsd.rules index c01db06..2614a11 100644 --- a/recipes-extra/gpsd/gpsd/60-gpsd.rules +++ b/recipes-extra/gpsd/gpsd/60-gpsd.rules @@ -8,14 +8,14 @@ # that it should look at the device that just went active, because it # might be a GPS. # -# The following setup works on Debian - something similar will apply on +# The following setup works on Debian - something similar will apply on # other distributions: -# +# # /etc/udev/gpsd.rules # /etc/udev/rules.d/025_gpsd.rules -> ../gpsd.rules # /lib/udev/gpsd.hotplug.wrapper # /lib/udev/gpsd.hotplug -# +# # Setting the link in /etc/udev/rules.d activates the rule and determines # when to run it on boot (similar to init.d processing). @@ -40,7 +40,7 @@ ATTR{idVendor}=="1546", ATTR{idProduct}=="01a5", SYMLINK="gps%n", RUN+="/lib/ude # FTDI FT232 ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" # u-blox 4 -SYSFS{idVendor}=="1546", SYSFS{idProduct}=="01a4", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" +ATTR{idVendor}=="1546", ATTR{idProduct}=="01a4", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug.wrapper"