cookutils rev 724 slitaz-tank

cook: Merge loglimit function from default branch.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Apr 18 16:12:51 2015 +0000 (2015-04-18)
parents 38cd201187fa
children 9f01b0cef7fd
files cook
line diff
     1.1 --- a/cook	Fri Apr 17 21:02:34 2015 +0000
     1.2 +++ b/cook	Sat Apr 18 16:12:51 2015 +0000
     1.3 @@ -1151,7 +1151,7 @@
     1.4  loglimit()
     1.5  {
     1.6  	if [ -n "$DEFAULT_LOG_LIMIT" ]; then
     1.7 -		tee /dev/stderr | dd bs=1024k count=${1:-$DEFAULT_LOG_LIMIT} 2> /dev/null
     1.8 +		tee /dev/stderr | head -qc ${1:-$DEFAULT_LOG_LIMIT}m
     1.9  	else
    1.10  		tee /dev/stderr
    1.11  	fi