Author: blogic Date: 2014-07-01 12:26:10 +0200 (Tue, 01 Jul 2014) New Revision: 41439
Modified: trunk/package/system/ubox/files/log.init Log: 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 <[email protected]> Modified: trunk/package/system/ubox/files/log.init =================================================================== --- trunk/package/system/ubox/files/log.init 2014-07-01 10:26:07 UTC (rev 41438) +++ trunk/package/system/ubox/files/log.init 2014-07-01 10:26:10 UTC (rev 41439) @@ -15,6 +15,7 @@ '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 @@ { 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 _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
