gpsd: only add device to procd start call if device option is configured
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 14 Feb 2025 12:00:57 +0000 (13:00 +0100)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Fri, 28 Feb 2025 07:13:00 +0000 (08:13 +0100)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
utils/gpsd/Makefile
utils/gpsd/files/gpsd.init

index ac568fbc2bc20bf5236b1ef4b1eb295e2a91c633..aaa7e118d592f44e22461454105db045d6891ee8 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gpsd
 PKG_VERSION:=3.25
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
index ee1fabf69bed1ff183edb791e9d775a47c45aee3..6f1a09e6baa9ab19a4a59399b2e1b0a99924b0e1 100644 (file)
@@ -33,7 +33,7 @@ gpsd_instance()
        procd_append_param command -S "$port"
        procd_append_param command -D "$LOG_LEVEL"
        procd_append_param command -F /var/run/gpsd.sock
-       procd_append_param command "$device"
+       [ -n "$device" ] && procd_append_param command "$device"
        procd_set_param respawn
 
        procd_close_instance