Disable screen lock on mesh clients

This commit is contained in:
Bob Mottram 2016-06-25 09:37:15 +01:00
parent 36a76be76e
commit b5db6f0bb1
1 changed files with 894 additions and 889 deletions

View File

@ -1150,6 +1150,9 @@ function configure_user_interface {
mesh_client_startup_applications
mesh_desktop_icons
# disable screen lock
chroot "$rootdir" dconf write /org/gnome/desktop/screensaver/lock-enabled false
# change the desktop background
if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
@ -1223,11 +1226,13 @@ export TMP=/tmp/ TMPDIR=/tmp/
username=$MY_USERNAME
echo $"warning: creating initial user $username with well known password!"
if [[ $VARIANT == "meshclient" || $VARIANT == "meshusb" ]]; then
# on the mesh client don't use a password by default
MY_PASSWORD=''
fi
password=$MY_PASSWORD
chroot "$rootdir" adduser --gecos $username --disabled-password $username
if [[ $VARIANT != "meshclient" && $VARIANT != "meshusb" ]]; then
echo $username:$password | chroot $rootdir /usr/sbin/chpasswd
fi
echo $username:$password | chroot $rootdir /usr/sbin/chpasswd
chroot "$rootdir" adduser $username sudo
case "$MACHINE" in