diff options
author | John Crispin <blogic@openwrt.org> | 2014-03-18 19:22:38 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-03-18 19:22:38 +0000 |
commit | 07fac08fd121b6767181ff53bb72257bfe42c2e6 (patch) | |
tree | bf593bd976816689576ec175ac6e2a312a02b9b6 /package/system/ubox/files | |
parent | 3465b7a544a71c4eca01c8356c9b4e0b033b0896 (diff) | |
download | upstream-07fac08fd121b6767181ff53bb72257bfe42c2e6.tar.gz upstream-07fac08fd121b6767181ff53bb72257bfe42c2e6.tar.bz2 upstream-07fac08fd121b6767181ff53bb72257bfe42c2e6.zip |
ubox: update to latest git head
logread now shows the right time.
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39951 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system/ubox/files')
-rw-r--r-- | package/system/ubox/files/log.init | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/package/system/ubox/files/log.init b/package/system/ubox/files/log.init index ca29fd882c..e11a74b572 100644 --- a/package/system/ubox/files/log.init +++ b/package/system/ubox/files/log.init @@ -24,14 +24,17 @@ validate_log_section() validate_log_daemon() { uci_validate_section system system "${1}" \ - 'log_buffer_size:uinteger:16' + 'log_size:uinteger:0' \ + 'log_buffer_size:uinteger:0' return $? } start_service_daemon() { - local log_buffer_size + local log_buffer_size log_size validate_log_daemon "${1}" + [ $log_buffer_size -eq 0 -a $log_size -gt 0 ] && log_buffer_size=$log_size + [ $log_buffer_size -eq 0 ] && log_buffer_size=16 procd_open_instance procd_set_param command "/sbin/logd" procd_append_param command -S "${log_buffer_size}" |