mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 15:36:19 +04:00
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:
committed by
Florian Eckert
parent
f420a7bb37
commit
7ca3ffebff
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user