
On Tuesday 2012-05-29 09:48, Stephan Kulow wrote:
expr(1) has been obsolete for more than two decades, you can just use arithmetic expansion available in any Bourne-derived shell for integer arithmetic and bc(1) for floating point arithmetic.
I don't know why kiwi's initrd calls an external tool for it either :)
haveKByte=`cat /proc/meminfo | grep MemFree | cut -f2 -d:| cut -f1 -dk` - haveMByte=`expr $haveKByte / 1024` - haveMByte=`expr $haveMByte \* 7 / 10` + haveMByte=$(($haveKByte * 7 / 10240))
cat has been obsolete for these kind of tasks, you can just use grep MemFree /proc/meminfo ... -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org