From 8fddece4e975a8a406421692f4e4463f0b57a8e6 Mon Sep 17 00:00:00 2001 From: WANG Chao Date: Thu, 20 Dec 2012 13:24:25 +0800 Subject: [PATCH] wrong ssh key fix To get sshkey from kdump.conf we should filter out comment. Fix it by change awk pattern to use ^sshkey Acked-by: Baoquan He --- mkdumprd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdumprd b/mkdumprd index 4c20798..af630c2 100644 --- a/mkdumprd +++ b/mkdumprd @@ -235,7 +235,7 @@ add_mount() { } # firstly get right SSH_KEY_LOCATION -keyfile=$(awk '/sshkey/ {print $2}' $conf_file) +keyfile=$(awk '/^sshkey/ {print $2}' $conf_file) if [ -f "$keyfile" ]; then # canonicalize the path SSH_KEY_LOCATION=$(/usr/bin/readlink -m $keyfile)