diff options
Diffstat (limited to 'init/kexec-disable.conf')
-rw-r--r-- | init/kexec-disable.conf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/init/kexec-disable.conf b/init/kexec-disable.conf new file mode 100644 index 00000000..61470431 --- /dev/null +++ b/init/kexec-disable.conf @@ -0,0 +1,11 @@ +# On machines where kexec isn't going to be used, free the memory reserved for it. + +start on stopped rcS +task + +script + if [ ! -x /sbin/kexec ] || ! chkconfig kdump 2>/dev/null ; then + echo -n "0" > /sys/kernel/kexec_crash_size 2>/dev/null + fi + exit 0 +end script |