make /var/lib/dpkg a ramdisk :(

Thomas Neumann blacky+fai at fluffbunny.de
Wed May 26 13:43:48 CEST 2010


>     typeset -i memtotal=$(sed -ne
's/^MemTotal:[[:space:]]*\([0-9]*\)[[:space:]]*.*/\1/p'
/proc/meminfo)

Stop that. This is very dirty code. You are ignoring the unit, which will
bite someone/somewhere sooner or later.



More information about the linux-fai mailing list