From a2a9f4896b4b8329427d0333ed019538340fc882 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 15 May 2011 12:13:59 +0300 Subject: testing --- up2date.app/Contents/Resources/up2date.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'up2date.app/Contents/Resources/up2date.sh') 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 -- cgit v1.2.3