From cc9b694e1fd6e02d615b547021c25af6c4492048 Mon Sep 17 00:00:00 2001 From: Jeff Morgan Date: Mon, 1 Sep 2014 18:11:52 -0700 Subject: [PATCH] Fixing launchagent to wait for our host-only network interface to be available before adding a route to the static routing table --- resources/install | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/resources/install b/resources/install index f558efe007..6f8f7c122f 100755 --- a/resources/install +++ b/resources/install @@ -21,15 +21,9 @@ echo " com.kitematic.route ProgramArguments - /sbin/route - -n - add - -net - 172.17.0.0 - -netmask - 255.255.0.0 - -gateway - $GATEWAY + bash + -c + /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 KeepAlive