slitaz-boot-scripts rev 117 2.5.2
bootopts.sh: autologin support (need slim 1.3.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 28 23:09:36 2008 +0200 (2008-09-28) |
parents | 36274d47502f |
children | b648ffc81f2e |
files | etc/init.d/bootopts.sh |
line diff
1.1 --- a/etc/init.d/bootopts.sh Wed Sep 24 22:18:30 2008 +0200 1.2 +++ b/etc/init.d/bootopts.sh Sun Sep 28 23:09:36 2008 +0200 1.3 @@ -112,6 +112,11 @@ 1.4 fi 1.5 fi 1.6 1.7 +# Autologin option to skip first graphic login prompt. 1.8 +if grep -q "autologin" /proc/cmdline; then 1.9 + echo "auto_login yes" >> /etc/slim.conf 1.10 +fi 1.11 + 1.12 # Check for a specified home directory on cmdline (home=*). 1.13 # 1.14 if grep -q "home=usb" /proc/cmdline; then