summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-05-01 12:57:48 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:09 +0100
commit79ca08a0ac2217563692e9182d9e636998428ba0 (patch)
tree52f23d23786112ff4a18b58160195be62c7276bc /scripts
parent92dfc46bfe1cffa6a1f780a91120d4f02896bc43 (diff)
downloadlive-boot-79ca08a0ac2217563692e9182d9e636998428ba0.tar.gz
live-boot-79ca08a0ac2217563692e9182d9e636998428ba0.zip
Merging casper 1.214.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live-bottom/15autologin11
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/live-bottom/15autologin b/scripts/live-bottom/15autologin
index 0b80f84..a4df2df 100755
--- a/scripts/live-bottom/15autologin
+++ b/scripts/live-bottom/15autologin
@@ -66,15 +66,12 @@ TimedLoginDelay=10"
# Prevent from updating if parameters already present (persistent usb
# key)
- if ! $(grep -qs 'AutomaticLoginEnable' $GDMCustomFile)
+ if ! $(grep -qs '\[daemon\]' $GDMCustomFile)
then
- if $(grep -qs '\[daemon\]' $GDMCustomFile)
- then
- sed -i "s/\[daemon\]/\[daemon\]\n$AutologinParameters/" $GDMCustomFile
- else
- printf "[daemon]\n$AutologinParameters" >> $GDMCustomFile
- fi
+ echo '[daemon]' >> $GDMCustomFile
fi
+
+ sed -i "s/\[daemon\]/\[daemon\]\n$AutologinParameters/" $GDMCustomFile
fi
if [ -d /root/etc/default/kdm.d/ ]