Changeset 30294


Ignore:
Timestamp:
2012-02-05T17:48:14+01:00 (4 years ago)
Author:
jow
Message:

[packages_10.03.2] hd-idle: merge r26655, r28949, r28954, r29199

Location:
branches/packages_10.03.2/utils/hd-idle
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/packages_10.03.2/utils/hd-idle/Makefile

    r26655 r30294  
    1010PKG_NAME:=hd-idle 
    1111PKG_VERSION:=1.03 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=4 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz 
     
    4141endef 
    4242 
     43define Package/hd-idle/conffiles 
     44/etc/config/hd-idle 
     45endef 
     46 
    4347$(eval $(call BuildPackage,hd-idle)) 
  • branches/packages_10.03.2/utils/hd-idle/files/hd-idle.init

    r12824 r30294  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2008 OpenWrt.org 
     2# Copyright (C) 2008-2011 OpenWrt.org 
     3 
    34START=50 
    4  
    5 SSD=start-stop-daemon 
    6 NAME=hd-idle 
    7 PROG=/usr/bin/$NAME 
    85 
    96append_bool() { 
     
    7067        append_bool "$section" "enable_debug" "-d" 
    7168        config_get_bool "enabled" "$section" "enabled" '1' 
    72         [ "$enabled" -gt 0 ] && $SSD -S -q -x $PROG -- "-i $(compute_seconds $interval $unit) $args" 
    73 } 
    74  
    75 stop_service() { 
    76         $SSD -K -q -x $PROG 
     69        [ "$enabled" -gt 0 ] || return 1 
     70        service_start /usr/bin/hd-idle -i "$(compute_seconds $interval $unit)" $args 
    7771} 
    7872 
     
    8377 
    8478stop() { 
    85         config_load "hd-idle" 
    86         config_foreach stop_service "hd-idle" 
     79        service_stop /usr/bin/hd-idle 
    8780} 
Note: See TracChangeset for help on using the changeset viewer.