diff options
author | Filipp Lepalaan <filipp@mac.com> | 2011-05-15 12:13:59 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2011-05-15 12:13:59 +0300 |
commit | a2a9f4896b4b8329427d0333ed019538340fc882 (patch) | |
tree | a15c1a96cccb33b1576f499c09bd69eda0cc10b5 | |
parent | 278d8cd20ebe0a75376076d45a8def55168f6cd2 (diff) | |
download | mtk-a2a9f4896b4b8329427d0333ed019538340fc882.tar.gz mtk-a2a9f4896b4b8329427d0333ed019538340fc882.tar.bz2 mtk-a2a9f4896b4b8329427d0333ed019538340fc882.zip |
testing
-rwxr-xr-x | up2date.app/Contents/Resources/up2date.sh | 4 |
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 |