Copy pkt_fwd config onto vfat partition
This commit is contained in:
@@ -24,7 +24,7 @@ start() {
|
||||
|
||||
reset_sx1301
|
||||
|
||||
cd /etc/ttn
|
||||
cd /mnt
|
||||
start-stop-daemon -S -b -q -p /var/run/packet-forwarder.pid \
|
||||
--exec /usr/bin/poly_pkt_fwd -- $PACKETFORWARDER_ARGS
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
|
||||
@@ -2,6 +2,7 @@ PACKET_FORWARDER_VERSION = legacy
|
||||
PACKET_FORWARDER_SITE = https://github.com/TheThingsNetwork/packet_forwarder.git
|
||||
PACKET_FORWARDER_SITE_METHOD = git
|
||||
PACKET_FORWARDER_DEPENDENCIES = lora-gateway
|
||||
PACKET_FORWARDER_INSTALL_IMAGES = YES
|
||||
|
||||
define PACKET_FORWARDER_CONFIGURE_CMDS
|
||||
endef
|
||||
@@ -13,10 +14,14 @@ endef
|
||||
|
||||
define PACKET_FORWARDER_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/poly_pkt_fwd/poly_pkt_fwd $(TARGET_DIR)/usr/bin/poly_pkt_fwd
|
||||
$(INSTALL) -D -m 0644 $(@D)/poly_pkt_fwd/global_conf.json $(TARGET_DIR)/etc/ttn/global_conf.json
|
||||
$(INSTALL) -D -m 0644 $(@D)/packet-forwarder $(TARGET_DIR)/etc/default/packet-forwarder
|
||||
endef
|
||||
|
||||
define PACKET_FORWARDER_INSTALL_IMAGES_CMDS
|
||||
$(INSTALL) -D -m 0644 $(@D)/poly_pkt_fwd/global_conf.json $(BINARIES_DIR)/poly_pkt_fwd/global_conf.json
|
||||
$(INSTALL) -D -m 0644 $(@D)/poly_pkt_fwd/local_conf.json $(BINARIES_DIR)/poly_pkt_fwd/local_conf.json
|
||||
endef
|
||||
|
||||
define PACKET_FORWARDER_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 755 $(PACKET_FORWARDER_PKGDIR)/S52packetforwarder \
|
||||
$(TARGET_DIR)/etc/init.d/S52packetforwarder
|
||||
|
||||
Reference in New Issue
Block a user