aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-09-23 21:58:36 +0000
committerLuka Perkov <luka@openwrt.org>2013-09-23 21:58:36 +0000
commitcebf051302432ae8d98dc14c01e7698f2e1240f9 (patch)
treee2d95e46c7f0ddee32863620a67ce304b751c1eb /package/system
parentb9c7eca5597c3afa10e1f0b2a70bffabe7c192e2 (diff)
downloadmaster-187ad058-cebf051302432ae8d98dc14c01e7698f2e1240f9.tar.gz
master-187ad058-cebf051302432ae8d98dc14c01e7698f2e1240f9.tar.bz2
master-187ad058-cebf051302432ae8d98dc14c01e7698f2e1240f9.zip
[package] fix various init scripts
Changes include: * removing unused variables * replacing spaces with tabs where appropriate * more consistency with variable declarations Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38142 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system')
-rw-r--r--package/system/procd/files/log.init7
1 files changed, 3 insertions, 4 deletions
diff --git a/package/system/procd/files/log.init b/package/system/procd/files/log.init
index 14fbdf8c54..d0e3025714 100644
--- a/package/system/procd/files/log.init
+++ b/package/system/procd/files/log.init
@@ -6,7 +6,6 @@ START=21
STOP=89
USE_PROCD=1
-NAME=logread
PROG=/sbin/logread
start_service_file()
@@ -15,13 +14,13 @@ start_service_file()
local log_file log_size
config_get log_file $1 log_file
- config_get log_size $1 log_size
+ config_get log_size $1 log_size
[ -z "${log_file}" ] && return
procd_open_instance
procd_set_param command "$PROG" -f -F "$log_file" -p "$pid_file"
- [ -n "${log_size}" ] && procd_append_param command -S "$log_size"
+ [ -n "${log_size}" ] && procd_append_param command -S "$log_size"
procd_close_instance
}
@@ -38,7 +37,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
}