From: Florian Eckert Date: Tue, 28 Jan 2025 09:47:21 +0000 (+0100) Subject: gpsd: add control socket '/var/run/gpsd.sock' on startup X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f420a7bb374a85c3c11f97ecbb541b0eab840ce5;p=feed%2Fpackages.git gpsd: add control socket '/var/run/gpsd.sock' on startup This change makes it possible to add new gps device without restarting the 'gpsd' service by using the 'gpsdctl' command. Signed-off-by: Florian Eckert --- diff --git a/utils/gpsd/Makefile b/utils/gpsd/Makefile index 928c4a06e4..91083514cc 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:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME) @@ -45,6 +45,7 @@ define Package/gpsd SECTION:=utils CATEGORY:=Utilities TITLE:=An interface daemon for GPS receivers + DEPENDS+= +gpsd-utils endef define Package/gpsd/conffiles diff --git a/utils/gpsd/files/gpsd.init b/utils/gpsd/files/gpsd.init index 3271d43fdc..479eeb2c8c 100644 --- a/utils/gpsd/files/gpsd.init +++ b/utils/gpsd/files/gpsd.init @@ -29,6 +29,7 @@ gpsd_instance() [ "$listen_globally" -ne 0 ] && procd_append_param command -G procd_append_param command -S "$port" + procd_append_param command -F /var/run/gpsd.sock procd_append_param command "$device" procd_set_param respawn