aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-07-01 10:26:10 +0000
committerJohn Crispin <blogic@openwrt.org>2014-07-01 10:26:10 +0000
commit43372da18a3a46e7041a2f9ccfd8629bd4af3413 (patch)
tree2dd72e028e272dcc67883ac9d27e474bd82d60c6
parentef9c64566e4c961334af51afac8896db1007745b (diff)
downloadupstream-43372da18a3a46e7041a2f9ccfd8629bd4af3413.tar.gz
upstream-43372da18a3a46e7041a2f9ccfd8629bd4af3413.tar.bz2
upstream-43372da18a3a46e7041a2f9ccfd8629bd4af3413.zip
ubox: add a flag that allows us to disable remote log while keeping the ip settings inside uci
this makes webui foo a lot easier Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41439 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/system/ubox/files/log.init4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/system/ubox/files/log.init b/package/system/ubox/files/log.init
index e11a74b572..a4d57e2b5d 100644
--- a/package/system/ubox/files/log.init
+++ b/package/system/ubox/files/log.init
@@ -15,6 +15,7 @@ validate_log_section()
'log_file:string' \
'log_size:uinteger' \
'log_ip:ipaddr' \
+ 'log_remote:bool:1' \
'log_port:port:514' \
'log_proto:or("tcp", "udp"):udp' \
'log_prefix:string'
@@ -64,12 +65,13 @@ start_service_remote()
{
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
local pid_file="/var/run/logread.${PIDCOUNT}.pid"
- local log_ip log_port log_proto log_prefix
+ local log_ip log_port log_proto log_prefix log_remote
validate_log_section "${1}" || {
echo "validation failed"
return 1
}
+ [ "${log_enable}" -ne 0 ] || return
[ -z "${log_ip}" ] && return
procd_open_instance