variable name fix

Resolves: bz807649

$need_dns should be $_need_dns
[v1->v2]: ChaoWang: quote "$_need_dns"
This commit is contained in:
Dave Young 2012-04-11 17:59:25 +08:00 committed by Cong Wang
parent 832c25f2d6
commit 7a2ab0af8c

View File

@ -58,7 +58,7 @@ install() {
fi fi
_need_dns=`echo $_server|grep "[a-zA-Z]"` _need_dns=`echo $_server|grep "[a-zA-Z]"`
[ -n $need_dns ] && _server=`getent hosts $_server|cut -d' ' -f1` [ -n "$_need_dns" ] && _server=`getent hosts $_server|cut -d' ' -f1`
_netdev=`/sbin/ip route get to $_server 2>&1` _netdev=`/sbin/ip route get to $_server 2>&1`
[ $? != 0 ] && echo "Bad kdump location: $config_val" && exit 1 [ $? != 0 ] && echo "Bad kdump location: $config_val" && exit 1