On 12/05/14 at 01:33pm, Minfei Huang wrote:
It is boring that internal result is shown in the terminal. Do not
print
anything to standard output by using the command "grep -q".
Signed-off-by: Minfei Huang <mhuang(a)redhat.com>
Looks good to me.
Acked-by: WANG Chao <chaowang(a)redhat.com>
---
dracut-module-setup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index dcebc47..9299b5d 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -212,7 +212,7 @@ get_routes() {
local _route
_route=`/sbin/ip route get to $_target 2>&1`
- if /sbin/ip route get to $_target | grep "via";
+ if /sbin/ip route get to $_target | grep -q "via";
then
# route going to a different subnet via a router
echo $_route | awk '{printf("rd.route=%s:%s:%s\n", $1, $3,
$5)}' \
--
1.8.3.1
_______________________________________________
kexec mailing list
kexec(a)lists.fedoraproject.org
https://lists.fedoraproject.org/mailman/listinfo/kexec