On 12/01/14 at 03:03pm, WANG Chao wrote:
On 11/24/14 at 07:20pm, Minfei Huang wrote:
> It is boring that internal result is shown in the trminal. Redirect the
> result to /dev/null to make kdump result more clearly.
How about "grep -q"?
You know what, I'm not strong with 'grep -q'. I think > /dev/null works
for me.
And please fix the typo in subject line and description:
"Donot" -> "Do not"
"trminal" -> "terminal"
>
> Signed-off-by: Minfei Huang <mhuang(a)redhat.com>
> ---
> dracut-module-setup.sh | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
> index dcebc47..a06251e 100755
> --- a/dracut-module-setup.sh
> +++ b/dracut-module-setup.sh
> @@ -212,8 +212,7 @@ get_routes() {
> local _route
>
> _route=`/sbin/ip route get to $_target 2>&1`
> - if /sbin/ip route get to $_target | grep "via";
> - then
> + if /sbin/ip route get to $_target | grep "via" > /dev/null; then
> # route going to a different subnet via a router
> echo $_route | awk '{printf("rd.route=%s:%s:%s\n", $1, $3,
$5)}' \
> >> ${initdir}/etc/cmdline.d/45route-static.conf
> --
> 1.8.3.1
>
> _______________________________________________
> kexec mailing list
> kexec(a)lists.fedoraproject.org
>
https://lists.fedoraproject.org/mailman/listinfo/kexec
_______________________________________________
kexec mailing list
kexec(a)lists.fedoraproject.org
https://lists.fedoraproject.org/mailman/listinfo/kexec