From d884ae2353358f8a25cc6b04bcb718746eadc0d9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 25 Feb 2012 16:10:46 +0000 Subject: [PATCH] [packages] hd-idle: fix parameter processing, its been broken since 3 years and only ever worked by accident SVN-Revision: 30722 --- utils/hd-idle/Makefile | 4 ++-- utils/hd-idle/files/hd-idle.init | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/hd-idle/Makefile b/utils/hd-idle/Makefile index 25fb32e97d..6e9b950e89 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 eb2db35e32..1abf2325f5 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() { -- 2.30.2