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}'
This commit is contained in:
Pau Espin 2017-07-24 16:32:00 +02:00
parent 0707a1dc06
commit 5ba7c52b06
1 changed files with 4 additions and 4 deletions

View File

@ -8,14 +8,14 @@
# that it should look at the device that just went active, because it # that it should look at the device that just went active, because it
# might be a GPS. # 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: # other distributions:
# #
# /etc/udev/gpsd.rules # /etc/udev/gpsd.rules
# /etc/udev/rules.d/025_gpsd.rules -> ../gpsd.rules # /etc/udev/rules.d/025_gpsd.rules -> ../gpsd.rules
# /lib/udev/gpsd.hotplug.wrapper # /lib/udev/gpsd.hotplug.wrapper
# /lib/udev/gpsd.hotplug # /lib/udev/gpsd.hotplug
# #
# Setting the link in /etc/udev/rules.d activates the rule and determines # Setting the link in /etc/udev/rules.d activates the rule and determines
# when to run it on boot (similar to init.d processing). # 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 # FTDI FT232
ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
# u-blox 4 # 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" ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug.wrapper"