Add get_option_value()
Adds get_option_value() function to retrieve value of specified option from /etc/kdump.conf. Bug-Url: https://bugzilla.redhat.com/1078134 Signed-off-by: Martin Perina <mperina@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
3e6e353bf7
commit
b8d586dd59
@ -75,3 +75,9 @@ get_root_fs_device()
|
||||
return
|
||||
}
|
||||
|
||||
# get_option_value <option_name>
|
||||
# retrieves value of option defined in kdump.conf
|
||||
get_option_value() {
|
||||
echo $(strip_comments `grep ^$1 /etc/kdump.conf | tail -1 | cut -d\ -f2-`)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user