Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 7656310e7bb2aeaa43e55396030af978 > files > 6

autologin-1.0.0-36.mga5.src.rpm

#!/bin/bash -login
# Use vt1 here to because it corresponds with the tty1 value hardcoded inside
# autologin source. This is somewhat fragile, but then the whole autologin
# package is somewhat fragile too.
# The tty used when speaking to PAM and the vt used by X *must* match up in
# order for the session to be considered "active" by logind (and thus for all
# ACLs etc. to work as expected)
exec /usr/bin/startx "$@" -- vt1