[OpenWrt-Devel] [oldpackages] hd-idle: enable_debug block boot process

Christian Schoenebeck christian.schoenebeck at gmail.com
Mon Jul 28 06:16:43 EDT 2014


From: Christian Schoenebeck <christian.schoenebeck at gmail.com>
Date: Mon, 28 Jul 2014 12:10:31 +0200
Subject: [PATCH] [oldpackages] hd-idle: enable_debug block boot process

enable_debug will set parameter "-d" 	Debug mode.
This will prevent hd-idle from becoming a daemon and print debugging
info to stdout/stderr. (see http://hd-idle.sourceforge.net/ )

During boot or (re-)started via LuCI the system will hang.
Starting with /etc/init.d/hd-idle start will give no output.
This parameter should be completely removed.
Increased PKG_RELEASE version.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck at gmail.com>
---
 utils/hd-idle/Makefile             | 2 +-
 utils/hd-idle/files/hd-idle.config | 1 -
 utils/hd-idle/files/hd-idle.init   | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/utils/hd-idle/Makefile b/utils/hd-idle/Makefile
index 981b884..e854c1e 100644
--- a/utils/hd-idle/Makefile
+++ b/utils/hd-idle/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=hd-idle
 PKG_VERSION:=1.04
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
diff --git a/utils/hd-idle/files/hd-idle.config b/utils/hd-idle/files/hd-idle.config
index 4e22c3b..dbbd358 100644
--- a/utils/hd-idle/files/hd-idle.config
+++ b/utils/hd-idle/files/hd-idle.config
@@ -1,6 +1,5 @@
 config 'hd-idle'
 	option 'disk' 'sda'
-	option 'enable_debug' '0'
 	option 'enabled' '0'
 	option 'idle_time_unit' 'minutes'
 	option 'idle_time_interval' '10'
diff --git a/utils/hd-idle/files/hd-idle.init b/utils/hd-idle/files/hd-idle.init
index 1abf232..b8ce5cf 100644
--- a/utils/hd-idle/files/hd-idle.init
+++ b/utils/hd-idle/files/hd-idle.init
@@ -64,7 +64,6 @@ start_service() {
 	config_get "interval" "$section" "idle_time_interval"
 	config_get "unit" "$section" "idle_time_unit"
 	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 $args -i "$(compute_seconds $interval $unit)"


---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list