SHOW:
|
|
- or go back to the newest paste.
1 | --- 15autologin.orig 2012-09-10 08:59:16.179341554 +1000 | |
2 | +++ 15autologin 2012-09-10 08:59:58.315341258 +1000 | |
3 | @@ -23,14 +23,15 @@ | |
4 | if [ -d /root/etc/gdm ]; then | |
5 | # Configure GDM autologin | |
6 | GDMCustomFile=/root/etc/gdm/custom.conf | |
7 | - AutologinParameters="AutomaticLoginEnable=true\n\ | |
8 | - | + AutologinParameters="# Casper Autologin Settings\n |
8 | + | + AutologinParameters="# Casper Autologin Settings\n\ |
9 | +AutomaticLoginEnable=true\n\ | |
10 | AutomaticLogin=$USERNAME\n\ | |
11 | TimedLoginEnable=true\n\ | |
12 | TimedLogin=$USERNAME\n\ | |
13 | TimedLoginDelay=10" | |
14 | ||
15 | # Prevent from updating if parameters already present (persistent usb key) | |
16 | - if ! `grep -qs 'AutomaticLoginEnable' $GDMCustomFile` ; then | |
17 | + if ! `grep -qs 'Casper\ Autologin\ Settings' $GDMCustomFile` ; then | |
18 | if ! `grep -qs '\[daemon\]' $GDMCustomFile` ; then | |
19 | echo '[daemon]' >> $GDMCustomFile | |
20 | fi |