/usr/share/initramfs-tools/scripts/casper-bottom/16gdmnopasswd is in casper 1.340.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #!/bin/sh
PREREQ=""
DESCRIPTION="Setting up automatic login..."
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
. /scripts/casper-functions
log_begin_msg "$DESCRIPTION"
STRING1=" if (this._userManager.list_users().length > 2 || !(this._userManager.get_user('ubuntu')))\n \
return GdmUtil.fadeInActor(this._promptLabel); \/\/show\n \
else\n \
this._promptLabel.hide();"
STRING2=" if (this._userManager.list_users().length > 2 || !(this._userManager.get_user('ubuntu')))\n \
return GdmUtil.fadeInActor(this._promptEntry); \/\/show\n \
else\n \
this._promptEntry.hide();"
GDMLoginFile=/root/usr/share/gnome-shell/js/gdm/loginDialog.js
if [ -f $GDMLoginFile ]; then
# Configure GDM autologin
sed -i -e "s/^.*return GdmUtil.fadeInActor(this._promptLabel);\$/$STRING1/" \
-e "s/^.*return GdmUtil.fadeInActor(this._promptEntry);\$/$STRING2/" \
$GDMLoginFile
fi
log_end_msg
|