v1.5 branch refresh based upon upstream master @ c8677ca89e53e3be7988d54280fce166cc894a7e
[librecmc/librecmc.git] / package / boot / kexec-tools / files / kdump.defaults
1 #!/bin/sh
2
3 case $(uname -m) in
4         i?86|x86_64)
5                 if ! grep -q crashkernel /boot/grub/grub.cfg; then
6                         mount /boot -o remount,rw
7                         sed -i 's/linux.*/& crashkernel=32M@32M/' /boot/grub/grub.cfg
8                         mount /boot -o remount,ro
9                 fi
10                 ;;
11 esac