> > - _netdev=`/sbin/ip route get to $_server 2>&1`
> > - [ $? != 0 ] && echo "Bad kdump location: $config_val"
&& exit 1
> > + if is_ipv6_host $_server; then
> > + _netdev=`/sbin/ip -6 route get to $_server 2>&1`
> > + [ $? != 0 ] && echo "Bad kdump location:
$config_val" && exit 1
>
> Does "ip route get to hostname" works for both ip4 and ip6?
Yes, we use "ip -6" to get the ipv6 route info.
Can we remove "-6" if it simply works for both 4 and 6? What does
"yes" means..
Thanks
Dave