From 7937eb2d9e19bef89f49db2d510b033f6281af5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tony=20Saraj=C3=A4rvi?= Date: Wed, 3 May 2017 09:54:56 +0300 Subject: Provisioning: disable screensaver password Previously provisioning disabled screensaver on startup but didn't affect current session. Thus the screensaver hits the VMs while provisioning and without this commit the screen gets locked. This prevents the lock and we get to the desktop on the VMs. Change-Id: Icd783127e898ece6bebb5598ab86f12d5062eeb5 Reviewed-by: Simon Hausmann --- coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'coin/provisioning/qtci-osx-10.11-x86_64') diff --git a/coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh b/coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh index 47bf03f8..920a2540 100755 --- a/coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh +++ b/coin/provisioning/qtci-osx-10.11-x86_64/005-systemsetup.sh @@ -46,6 +46,7 @@ ExceptionSetInitialDelay=101 ExceptionSetDelay=102 ExceptionVNC=103 ExceptionNTS=104 +ExceptionDisableScreensaverPassword=105 try ( @@ -78,6 +79,8 @@ try EOT ) || throw $ExceptionDisableScreensaver + defaults write com.apple.screensaver askForPassword -int 0 || throw $ExceptionDisableScreensaverPassword + echo "Set keyboard type rates and delays" # normal minimum is 15 (225 ms) defaults write -g InitialKeyRepeat -int 15 || throw $ExceptionSetInitialDelay @@ -113,6 +116,10 @@ catch || { echo "Failed to set NTS." exit 1; ;; + $ExceptionDisableScreensaverPassword) + echo "Failed to disable requiring of password after screensaver is enabled." + exit 1; + ;; esac } -- cgit v1.2.3