diff --git a/kdump-lib.sh b/kdump-lib.sh index a20c6e8..b9dec21 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -109,7 +109,7 @@ get_mntpoint_from_target() # 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-`) + echo $(strip_comments `grep "^$1[[:space:]]\+" /etc/kdump.conf | tail -1 | cut -d\ -f2-`) } #This function compose a absolute path with the mount