Changeset 30722


Ignore:
Timestamp:
2012-02-25T17:10:46+01:00 (5 years ago)
Author:
jow
Message:

[packages] hd-idle: fix parameter processing, its been broken since 3 years and only ever worked by accident

Location:
packages/utils/hd-idle
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/hd-idle/Makefile

    r29199 r30722  
    11# 
    2 # Copyright (C) 2008-2011 OpenWrt.org 
     2# Copyright (C) 2008-2012 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=hd-idle 
    1111PKG_VERSION:=1.03 
    12 PKG_RELEASE:=4 
     12PKG_RELEASE:=5 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz 
  • packages/utils/hd-idle/files/hd-idle.init

    r28954 r30722  
    6464        config_get "interval" "$section" "idle_time_interval" 
    6565        config_get "unit" "$section" "idle_time_unit" 
    66         append_string "$section" "disk" "-t" 
     66        append_string "$section" "disk" "-a" 
    6767        append_bool "$section" "enable_debug" "-d" 
    6868        config_get_bool "enabled" "$section" "enabled" '1' 
    6969        [ "$enabled" -gt 0 ] || return 1 
    70         service_start /usr/bin/hd-idle -i "$(compute_seconds $interval $unit)" $args 
     70        service_start /usr/bin/hd-idle $args -i "$(compute_seconds $interval $unit)" 
    7171} 
    7272 
Note: See TracChangeset for help on using the changeset viewer.