Disable screen lock on mesh clients
This commit is contained in:
parent
36a76be76e
commit
b5db6f0bb1
|
@ -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
|
||||
chroot "$rootdir" adduser $username sudo
|
||||
|
||||
case "$MACHINE" in
|
||||
|
|
Loading…
Reference in New Issue