procd: default to udp log protocol to keep backwards compat with busybox

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37496 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Jo-Philipp Wich 2013-07-22 11:31:29 +00:00
parent 0fee8272de
commit bd2cbce22c

View File

@ -41,7 +41,7 @@ start_service_remote()
procd_open_instance
procd_set_param command "$PROG" -f -r "$log_ip" "${log_port:-514}" -p "$pid_file"
[ "${log_proto}" = "udp" ] && procd_append_param command -u
[ "${log_proto}" != "udp" ] || procd_append_param command -u
procd_close_instance
PIDCOUNT="$(( ${PIDCOUNT} + 1))"