Changeset 29006


Ignore:
Timestamp:
2011-11-13T07:45:40+01:00 (5 years ago)
Author:
obsy
Message:

[packages] transmission: cleanup and drop some bashizm

Location:
packages/net/transmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/transmission/Makefile

    r28505 r29006  
    1010PKG_NAME:=transmission 
    1111PKG_VERSION:=2.42 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • packages/net/transmission/files/transmission.init

    r28342 r29006  
    3838start_service() { 
    3939        local s="$1" 
    40         local enable=0 
    4140        local enabled=0 
    4241        local run_as_usr='root' 
    4342        local open_file_limit=0 
    44         local ulimit_files=`ulimit -n` 
     43        local ulimit_files=$(ulimit -n) 
    4544 
    4645        # disabled? 
     
    8281 
    8382        config_get open_file_limit "$s" open_file_limit 32 
    84         let open_limit_files="$open_file_limit + 8" 
     83        open_limit_files=$(($open_file_limit + 8)) 
    8584 
    8685        if [ ${open_file_limit} -gt ${ulimit_files} ]; then 
Note: See TracChangeset for help on using the changeset viewer.