3 # kB disable if mem low than 256MB
4 memtotal
=`grep MemTotal /proc/meminfo | awk '{print $2}'`
5 if test $memtotal -le 262144; then
9 if test $memtotal -ge 8388608; then
11 elif test $memtotal -ge 4194304; then
17 if ! grep -q crashkernel
/boot
/grub
/grub.cfg
; then
18 mount
/boot
-o remount
,rw
19 sed -i "s/linux.*/& crashkernel=${KZ}M/" /boot
/grub
/grub.cfg
20 mount
/boot
-o remount
,ro