mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 13:26:17 +04:00
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 <fe@dev.tdt.de>
This commit is contained in:
committed by
Florian Eckert
parent
8f0ab168ce
commit
f420a7bb37
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user