Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- 15autologin.orig 2012-09-10 08:59:16.179341554 +1000
- +++ 15autologin 2012-09-10 08:59:58.315341258 +1000
- @@ -23,14 +23,15 @@
- if [ -d /root/etc/gdm ]; then
- # Configure GDM autologin
- GDMCustomFile=/root/etc/gdm/custom.conf
- - AutologinParameters="AutomaticLoginEnable=true\n\
- + AutologinParameters="# Casper Autologin Settings\n\
- +AutomaticLoginEnable=true\n\
- AutomaticLogin=$USERNAME\n\
- TimedLoginEnable=true\n\
- TimedLogin=$USERNAME\n\
- TimedLoginDelay=10"
- # Prevent from updating if parameters already present (persistent usb key)
- - if ! `grep -qs 'AutomaticLoginEnable' $GDMCustomFile` ; then
- + if ! `grep -qs 'Casper\ Autologin\ Settings' $GDMCustomFile` ; then
- if ! `grep -qs '\[daemon\]' $GDMCustomFile` ; then
- echo '[daemon]' >> $GDMCustomFile
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement