From: jow Date: Sat, 25 Feb 2012 16:19:03 +0000 (+0000) Subject: [packages_10.03.2] hd-idle: merge r30722 X-Git-Url: http://git.archive.openwrt.org/luci2/bootstrap/cascade.css?a=commitdiff_plain;h=d23b42873c7f3ec707214df08594371c000dcfe2;p=10.03%2Fpackages.git [packages_10.03.2] hd-idle: merge r30722 git-svn-id: svn://svn.openwrt.org/openwrt/branches/packages_10.03.2@30723 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/utils/hd-idle/Makefile b/utils/hd-idle/Makefile index 25fb32e..6e9b950 100644 --- a/utils/hd-idle/Makefile +++ b/utils/hd-idle/Makefile @@ -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) diff --git a/utils/hd-idle/files/hd-idle.init b/utils/hd-idle/files/hd-idle.init index eb2db35..1abf232 100644 --- a/utils/hd-idle/files/hd-idle.init +++ b/utils/hd-idle/files/hd-idle.init @@ -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() {