aboutsummaryrefslogtreecommitdiffstats
path: root/up2date.app/Contents/Resources/up2date.sh
diff options
context:
space:
mode:
Diffstat (limited to 'up2date.app/Contents/Resources/up2date.sh')
-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