crond.init: replace egrep with grep -E

This commit is contained in:
Anton Midyukov 2022-06-30 15:46:24 +07:00
parent 6eb69ba40d
commit a67612f56f

View File

@ -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