mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
rtl-sdr: Add start script file for rtl-tcp
One of the most common uses of the rtl-sdr suite on OpenWrt is to stream data to a remote analyzer. This commit creates a /etc/init.d/ and /etc/config entry for rtl-tcp, so that it can automatically launch on startup. Signed-off-by: Mike Miller <github@mikeage.net>
This commit is contained in:
committed by
Vasilis Tsiligiannis
parent
4c8c8fc4cf
commit
754bd95bfa
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=rtl-sdr
|
||||
PKG_VERSION:=0.5.3-20150608-$(PKG_SOURCE_VERSION)
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=git://git.osmocom.org/rtl-sdr.git
|
||||
@@ -81,6 +81,10 @@ endef
|
||||
define Package/rtl-sdr/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/rtl_* $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) files/rtl_tcp.init $(1)/etc/init.d/rtl_tcp
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) files/rtl_tcp.config $(1)/etc/config/rtl_tcp
|
||||
endef
|
||||
|
||||
define Package/librtlsdr/install
|
||||
|
||||
Reference in New Issue
Block a user