From c954b960c41e054f707f1f67267dc8abb7432e11 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 14 Feb 2025 13:00:57 +0100 Subject: [PATCH] gpsd: only add device to procd start call if device option is configured Signed-off-by: Florian Eckert --- utils/gpsd/Makefile | 2 +- utils/gpsd/files/gpsd.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/gpsd/Makefile b/utils/gpsd/Makefile index ac568fbc2b..aaa7e118d5 100644 --- a/utils/gpsd/Makefile +++ b/utils/gpsd/Makefile @@ -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) diff --git a/utils/gpsd/files/gpsd.init b/utils/gpsd/files/gpsd.init index ee1fabf69b..6f1a09e6ba 100644 --- a/utils/gpsd/files/gpsd.init +++ b/utils/gpsd/files/gpsd.init @@ -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 -- 2.30.2