ubox: update to latest git head

adds option to set internal buffer size

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39333
This commit is contained in:
John Crispin 2014-01-19 19:10:09 +00:00
parent fac5e62abd
commit 1de0eac947
2 changed files with 26 additions and 7 deletions

View file

@ -1,13 +1,13 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=ubox PKG_NAME:=ubox
PKG_VERSION:=2014-01-17 PKG_VERSION:=2014-01-19
PKG_RELEASE=$(PKG_SOURCE_VERSION) PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://nbd.name/luci2/ubox.git PKG_SOURCE_URL:=git://nbd.name/luci2/ubox.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=6a5ff020909d005ad014810b2b7b60aabe9d7ed0 PKG_SOURCE_VERSION:=dee0eafbf7de74b45f90631b7c807395e0a0bc4b
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
CMAKE_INSTALL:=1 CMAKE_INSTALL:=1

View file

@ -21,6 +21,29 @@ validate_log_section()
return $? return $?
} }
validate_log_daemon()
{
uci_validate_section system system "${1}" \
'log_size:uinteger'
return $?
}
start_service_daemon()
{
local log_size
validate_log_daemon "${1}" || {
echo "validation failed"
return 1
}
procd_open_instance
procd_set_param command "/sbin/logd"
[ -n "${log_size}" ] && procd_append_param command -S "$log_size"
procd_set_param respawn
procd_close_instance
}
start_service_file() start_service_file()
{ {
PIDCOUNT="$(( ${PIDCOUNT} + 1))" PIDCOUNT="$(( ${PIDCOUNT} + 1))"
@ -66,12 +89,8 @@ service_triggers()
start_service() start_service()
{ {
procd_open_instance
procd_set_param command "/sbin/logd"
procd_set_param respawn
procd_close_instance
config_load system config_load system
config_foreach start_service_daemon system
config_foreach start_service_file system config_foreach start_service_file system
config_foreach start_service_remote system config_foreach start_service_remote system
} }