summaryrefslogtreecommitdiffstats
path: root/snippets/autologin-gdm.ks
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/autologin-gdm.ks')
-rw-r--r--snippets/autologin-gdm.ks12
1 files changed, 12 insertions, 0 deletions
diff --git a/snippets/autologin-gdm.ks b/snippets/autologin-gdm.ks
new file mode 100644
index 0000000..cf23273
--- /dev/null
+++ b/snippets/autologin-gdm.ks
@@ -0,0 +1,12 @@
+# %post modifications for gdm
+
+cat >> /etc/rc.d/init.d/fedora-live << EOF
+chown -R fedora:fedora /home/fedora
+sed -i -e 's/\[daemon\]/[daemon]\nTimedLoginEnable=true\nTimedLogin=fedora\nTimedLoginDelay=60/' /etc/gdm/custom.conf
+if [ -e /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png ] ; then
+ cp /usr/share/icons/hicolor/96x96/apps/fedora-logo-icon.png /home/fedora/.face
+ chown fedora:fedora /home/fedora/.face
+ # TODO: would be nice to get e-d-s to pick this one up too... but how?
+fi
+EOF
+