aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-05-15 12:13:59 +0300
committerFilipp Lepalaan <filipp@mac.com>2011-05-15 12:13:59 +0300
commita2a9f4896b4b8329427d0333ed019538340fc882 (patch)
treea15c1a96cccb33b1576f499c09bd69eda0cc10b5
parent278d8cd20ebe0a75376076d45a8def55168f6cd2 (diff)
downloadmtk-a2a9f4896b4b8329427d0333ed019538340fc882.tar.gz
mtk-a2a9f4896b4b8329427d0333ed019538340fc882.tar.bz2
mtk-a2a9f4896b4b8329427d0333ed019538340fc882.zip
testing
-rwxr-xr-xup2date.app/Contents/Resources/up2date.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/up2date.app/Contents/Resources/up2date.sh b/up2date.app/Contents/Resources/up2date.sh
index d23438e..bdfc082 100755
--- a/up2date.app/Contents/Resources/up2date.sh
+++ b/up2date.app/Contents/Resources/up2date.sh
@@ -36,6 +36,10 @@ EOT
/usr/bin/logger "$(basename $0) loaded"
exit 0
fi
+ # wait for the GUI to come up...
+ while [[ ! /bin/ps aux | /usr/bin/grep loginwindow | /usr/bin/grep -qv grep ]]; do
+ sleep 5
+ done
/usr/bin/open /var/log/system.log
/usr/sbin/softwareupdate -ia && /sbin/reboot
exit 0