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 <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert
2025-01-28 10:48:19 +01:00
committed by Florian Eckert
parent f420a7bb37
commit 7ca3ffebff
2 changed files with 4 additions and 1 deletions

View File

@@ -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)

View File

@@ -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