diff --git a/kdump-lib.sh b/kdump-lib.sh index 7103ba9..abf2eb3 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -75,3 +75,9 @@ get_root_fs_device() return } +# get_option_value +# retrieves value of option defined in kdump.conf +get_option_value() { + echo $(strip_comments `grep ^$1 /etc/kdump.conf | tail -1 | cut -d\ -f2-`) +} +