Commit 5693f7de authored by Russ Fish's avatar Russ Fish

Tweak route setup retry logic.

parent 6ad49def
...@@ -573,9 +573,10 @@ sub os_routing_add_manual($$$$$;$) ...@@ -573,9 +573,10 @@ sub os_routing_add_manual($$$$$;$)
# the IP Address Table for the machine. # the IP Address Table for the machine.
# Re-doing the command later succeeds. # Re-doing the command later succeeds.
# Wrap the route command in a loop to make sure it gets done. # Wrap the route command in a loop to make sure it gets done.
$cmd = "while ! ( route print | grep -Fq $destip ); do \n $cmd = "while ! ( $ROUTE print | grep -Fq $destip ); do \n
echo $cmd;\n echo $cmd;\n
$cmd\n $cmd\n
sleep 5\n
done"; done";
return $cmd; return $cmd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment