summaryrefslogtreecommitdiff
path: root/package/system/ubox/files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-01-22 15:33:16 +0000
committerJohn Crispin <john@openwrt.org>2014-01-22 15:33:16 +0000
commiteceea6d6e19a47e616261ec942a1da442cde229a (patch)
treeea13e1bed6008277f2f84e59717240457d3735e0 /package/system/ubox/files
parent9dc60303169fbfab11c8637d40501b8594295d33 (diff)
downloadmtk-20170518-eceea6d6e19a47e616261ec942a1da442cde229a.zip
mtk-20170518-eceea6d6e19a47e616261ec942a1da442cde229a.tar.gz
mtk-20170518-eceea6d6e19a47e616261ec942a1da442cde229a.tar.bz2
ubox: revert log buffer size changes
the fix horribly broke existing setups Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39366
Diffstat (limited to 'package/system/ubox/files')
-rw-r--r--package/system/ubox/files/log.init29
1 files changed, 5 insertions, 24 deletions
diff --git a/package/system/ubox/files/log.init b/package/system/ubox/files/log.init
index a00f73d..548f963 100644
--- a/package/system/ubox/files/log.init
+++ b/package/system/ubox/files/log.init
@@ -21,29 +21,6 @@ validate_log_section()
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()
{
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
@@ -89,8 +66,12 @@ service_triggers()
start_service()
{
+ procd_open_instance
+ procd_set_param command "/sbin/logd"
+ procd_set_param respawn
+ procd_close_instance
+
config_load system
- config_foreach start_service_daemon system
config_foreach start_service_file system
config_foreach start_service_remote system
}