mirror of https://github.com/docker/docs.git
Fixing launchagent to wait for our host-only network interface to be available before adding a route to the static routing table
This commit is contained in:
parent
dc1cb0caec
commit
cc9b694e1f
|
@ -21,15 +21,9 @@ echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||||
<string>com.kitematic.route</string>
|
<string>com.kitematic.route</string>
|
||||||
<key>ProgramArguments</key>
|
<key>ProgramArguments</key>
|
||||||
<array>
|
<array>
|
||||||
<string>/sbin/route</string>
|
<string>bash</string>
|
||||||
<string>-n</string>
|
<string>-c</string>
|
||||||
<string>add</string>
|
<string>/usr/sbin/scutil -w State:/Network/Interface/$IFACE/IPv4;/sbin/route -n add -net 172.17.0.0 -netmask 255.255.0.0 -gateway $GATEWAY</string>
|
||||||
<string>-net</string>
|
|
||||||
<string>172.17.0.0</string>
|
|
||||||
<string>-netmask</string>
|
|
||||||
<string>255.255.0.0</string>
|
|
||||||
<string>-gateway</string>
|
|
||||||
<string>$GATEWAY</string>
|
|
||||||
</array>
|
</array>
|
||||||
<key>KeepAlive</key>
|
<key>KeepAlive</key>
|
||||||
<false/>
|
<false/>
|
||||||
|
|
Loading…
Reference in New Issue