crond.init: replace egrep with grep -E
This commit is contained in:
parent
6eb69ba40d
commit
a67612f56f
@ -25,7 +25,7 @@ start()
|
||||
local nprocs load=
|
||||
|
||||
load=
|
||||
nprocs=`egrep -cs ^cpu[0-9]+ /proc/stat ||:`
|
||||
nprocs=`grep -Ecs ^cpu[0-9]+ /proc/stat ||:`
|
||||
if [ "$nprocs" -gt 1 ] 2>/dev/null; then
|
||||
load="-l $nprocs.5"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user