From 4a6b3379fbff36fb418645683c9c6b064369fca464c82a5ab3b2fa7e6582d878 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sun, 8 Jul 2007 20:31:13 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kexec-tools?expand=0&rev=27 --- kdump | 10 +++++++++- kexec-tools.changes | 5 +++++ kexec-tools.spec | 4 +++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/kdump b/kdump index 34b7111..b1f7fd8 100644 --- a/kdump +++ b/kdump @@ -259,7 +259,15 @@ case "$1" in fi ;; status) - echo "not implemented" + if [ -r /sys/kernel/kexec_crash_loaded ]; then + if [ "$(cat /sys/kernel/kexec_crash_loaded)" = "1" ]; then + echo "kdump kernel loaded" + else + echo "kdump kernel not loaded" + fi + else + echo "not implemented" + fi ;; restart|reload) $0 stop diff --git a/kexec-tools.changes b/kexec-tools.changes index faac2d2..ad87542 100644 --- a/kexec-tools.changes +++ b/kexec-tools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 6 18:24:12 CEST 2007 - tiwai@suse.de + +- implement a simple status command for kdump init script + ------------------------------------------------------------------- Tue Jul 3 00:00:18 CEST 2007 - bwalle@suse.de diff --git a/kexec-tools.spec b/kexec-tools.spec index 3ebec51..6c200c5 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -18,7 +18,7 @@ Requires: %insserv_prereq %fillup_prereq Autoreqprov: on Summary: Tools for fast kernel loading Version: 1.101 -Release: 114 +Release: 115 Source: %{name}-%{package_version}.tar.bz2 Source1: kdump Source2: sysconfig.kdump @@ -132,6 +132,8 @@ true # ignore errors /var/adm/fillup-templates/sysconfig.kdump %changelog +* Fri Jul 06 2007 - tiwai@suse.de +- implement a simple status command for kdump init script * Tue Jul 03 2007 - bwalle@suse.de - removed 'machvec=dig' workaround from the documentation since this has been fixed in the kernel (#271158)