[packages] hd-idle: fix parameter processing, its been broken since 3 years and only ever worked by accident
git-svn-id: svn://svn.openwrt.org/openwrt/packages@30722 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
390ac9d680
commit
d7320b43f7
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2008-2011 OpenWrt.org
|
||||
# Copyright (C) 2008-2012 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=hd-idle
|
||||
PKG_VERSION:=1.03
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=5
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
||||
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
||||
|
@ -63,11 +63,11 @@ start_service() {
|
||||
args=""
|
||||
config_get "interval" "$section" "idle_time_interval"
|
||||
config_get "unit" "$section" "idle_time_unit"
|
||||
append_string "$section" "disk" "-t"
|
||||
append_string "$section" "disk" "-a"
|
||||
append_bool "$section" "enable_debug" "-d"
|
||||
config_get_bool "enabled" "$section" "enabled" '1'
|
||||
[ "$enabled" -gt 0 ] || return 1
|
||||
service_start /usr/bin/hd-idle -i "$(compute_seconds $interval $unit)" $args
|
||||
service_start /usr/bin/hd-idle $args -i "$(compute_seconds $interval $unit)"
|
||||
}
|
||||
|
||||
start() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user