@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ubox
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git
@@ -32,7 +32,7 @@ validate_log_daemon()
start_service_daemon()
{
- [ $log_buffer_size -eq 0 -a $log_size -gt 0 ] && log_buffer_size=$log_size
+ [ $log_buffer_size -eq 0 ] && [ $log_size -gt 0 ] && log_buffer_size=$log_size
[ $log_buffer_size -eq 0 ] && log_buffer_size=64
procd_open_instance
procd_set_param command "/sbin/logd"
@@ -43,7 +43,7 @@ start_service_daemon()
start_service_file()
{
- PIDCOUNT="$(( ${PIDCOUNT} + 1))"
+ PIDCOUNT=$((PIDCOUNT + 1))
local pid_file="/var/run/logread.${PIDCOUNT}.pid"
[ "$2" = 0 ] || {
@@ -62,7 +62,7 @@ start_service_file()
start_service_remote()
{
- PIDCOUNT="$(( ${PIDCOUNT} + 1))"
+ PIDCOUNT=$((PIDCOUNT + 1))
local pid_file="/var/run/logread.${PIDCOUNT}.pid"
[ "$2" = 0 ] || {
Warnings fixed: SC2004: $/${} is unnecessary on arithmetic variables. SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. Signed-off-by: Rosen Penev <rosenp@gmail.com> --- v2: Fixed mistake with executing PIDCOUNT. package/system/ubox/Makefile | 2 +- package/system/ubox/files/log.init | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)