]> git.ipfire.org Git - thirdparty/dracut.git/commit
add function wait_for_route_ok
authorDave Young <dyoung@redhat.com>
Thu, 16 Feb 2012 01:36:29 +0000 (09:36 +0800)
committerHarald Hoyer <harald@redhat.com>
Thu, 16 Feb 2012 10:19:07 +0000 (11:19 +0100)
commit75cade1216b62957efad7e97c77e4e8b0414a515
treebc6946085dc20a90eecd06fb341f7f0416c49790
parenta2c631c0a3d3208069ebccefc39f591e0595a545
add function wait_for_route_ok

Manually setuping nic through udev is not always done when
we want network access. Here add a function wait_for_route_ok to
wait and make sure the network is accesible

[v1 -> v2]:
Harald: don't use bash syntax
Add check for [ -n "$li" ] because `ip route show` will show nothing probably

Signed-off-by: Dave Young <dyoung@redhat.com>
modules.d/99base/dracut-lib.sh