From 7ca3ffebffdca2ac3c4cde80501f4e372a4444c9 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 28 Jan 2025 10:48:19 +0100 Subject: [PATCH] gpsd: add the possibility to start the gpsd with a different log level This simplifies the handling of log levels if we need more log information during development. Signed-off-by: Florian Eckert --- utils/gpsd/Makefile | 2 +- utils/gpsd/files/gpsd.init | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/gpsd/Makefile b/utils/gpsd/Makefile index 91083514cc..5b52dcfb38 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:=2 +PKG_RELEASE:=3 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 479eeb2c8c..ba5563e858 100644 --- a/utils/gpsd/files/gpsd.init +++ b/utils/gpsd/files/gpsd.init @@ -6,6 +6,8 @@ USE_PROCD=1 PROG=/usr/sbin/gpsd NAME=gpsd +LOG_LEVEL="0" + validate_section_gpsd() { uci_load_validate gpsd gpsd "$1" "$2" \ @@ -29,6 +31,7 @@ gpsd_instance() [ "$listen_globally" -ne 0 ] && procd_append_param command -G 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" procd_set_param respawn -- 2.30.2