From: Florian Eckert Date: Fri, 14 Feb 2025 12:00:57 +0000 (+0100) Subject: gpsd: only add device to procd start call if device option is configured X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c954b960c41e054f707f1f67267dc8abb7432e11;p=feed%2Fpackages.git gpsd: only add device to procd start call if device option is configured Signed-off-by: Florian Eckert --- 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