#
-# 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.
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)
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() {