[Fai-commit] r6562 - trunk/examples/simple/scripts/CENTOS

Thomas Lange lange at alioth.debian.org
Fri May 27 16:40:00 UTC 2011


Author: lange
Date: 2011-05-27 16:40:00 +0000 (Fri, 27 May 2011)
New Revision: 6562

Modified:
   trunk/examples/simple/scripts/CENTOS/80-misc
Log:
if gdm is installed, start graphical login


Modified: trunk/examples/simple/scripts/CENTOS/80-misc
===================================================================
--- trunk/examples/simple/scripts/CENTOS/80-misc	2011-05-27 16:23:57 UTC (rev 6561)
+++ trunk/examples/simple/scripts/CENTOS/80-misc	2011-05-27 16:40:00 UTC (rev 6562)
@@ -9,5 +9,12 @@
     $ROOTCMD usermod -p "$ROOTPW" demo
 fi
 
+# enable graphical login screen, make run level 5 as default
+if [ -f $target/usr/sbin/gdm ]; then
+    sed -i -e 's/id:3:initdefault:/id:5:initdefault:/' $target/etc/inittab
+    # do not run this tool
+    echo "RUN_FIRSTBOOT=NO" > $target/etc/sysconfig/firstboot
+fi
+
 exit $error
 




More information about the Fai-commit mailing list