From 0fc4992fbe933319b67365d4fc1b7f8d7ac028c5 Mon Sep 17 00:00:00 2001 From: Sense <35366387+sensec@users.noreply.github.com> Date: Wed, 31 Jan 2018 01:37:49 +0800 Subject: [PATCH] add option retry-on-error --- Makefile | 2 +- files/root/etc/init.d/udp2raw | 1 + files/root/etc/init.d/udp2raw.init | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 93fd80f..e9af99d 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-udp2raw PKG_VERSION:=1.0.0 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_LICENSE:=GPLv3 PKG_LICENSE_FILES:=LICENSE diff --git a/files/root/etc/init.d/udp2raw b/files/root/etc/init.d/udp2raw index 17c8230..96de10e 100644 --- a/files/root/etc/init.d/udp2raw +++ b/files/root/etc/init.d/udp2raw @@ -67,6 +67,7 @@ create_config() { [ -n "$lower_level" ] && echo "--lower-level ${lower_level}" >> $config_file [ -n "$source_ip" ] && echo "--source-ip ${source_ip}" >> $config_file [ -n "$source_port" ] && echo "--source-port ${source_port}" >> $config_file + echo "--retry-on-error" >> $config_file [ -n "$log_level" ] && echo "--log-level ${log_level}" >> $config_file echo "--disable-color" >> $config_file diff --git a/files/root/etc/init.d/udp2raw.init b/files/root/etc/init.d/udp2raw.init index bbd55b1..b955b62 100644 --- a/files/root/etc/init.d/udp2raw.init +++ b/files/root/etc/init.d/udp2raw.init @@ -66,6 +66,7 @@ create_config() { [ -n "$lower_level" ] && echo "--lower-level ${lower_level}" >> $config_file [ -n "$source_ip" ] && echo "--source-ip ${source_ip}" >> $config_file [ -n "$source_port" ] && echo "--source-port ${source_port}" >> $config_file + echo "--retry-on-error" >> $config_file [ -n "$log_level" ] && echo "--log-level ${log_level}" >> $config_file echo "--disable-color" >> $config_file