summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorMichael Janczyk2006-12-12 21:37:59 +0100
committerMichael Janczyk2006-12-12 21:37:59 +0100
commite5cf316f545627c665e07fe17854690e61eeec82 (patch)
treee3754b08a4630a7e5293447d6d7e1d59bd12ace8 /initramfs/initrd-stuff/etc/functions
parent* some work towards completing the API documentation (POD) (diff)
downloadcore-e5cf316f545627c665e07fe17854690e61eeec82.tar.gz
core-e5cf316f545627c665e07fe17854690e61eeec82.tar.xz
core-e5cf316f545627c665e07fe17854690e61eeec82.zip
runvmware xdialog write to stdout. kdmrc template established +
adaptations for new kdmrc template. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@531 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
-rw-r--r--initramfs/initrd-stuff/etc/functions103
1 files changed, 102 insertions, 1 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index ac17578a..e78bf88c 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -4,7 +4,7 @@
#
# Dirk von Suchodoletz <dvs@OpenSLX.com>, 19-11-2006
# Felix Endres, 30-04-2006
-# <mj0@uni-freiburg.de> (xenbr), 27-09-2006
+# <mj0@uni-freiburg.de> (xenbr), 12-12-2006
# Tobias Maier
#
# (c) 2006 - RZ Universitaet Freiburg
@@ -906,6 +906,102 @@ for i in boot.ld ${D_INITSCRIPTS}; do
done
}
+# kdmrc template
+config_kdm_template () {
+usetheme=false
+themeconf=$(ls /mnt/var/lib/openslx/themes/displaymanager/*.xml 2>/dev/null)
+[ -r "${themeconf}" ] && usetheme=true
+# check if a kdmrc was provided via ConfTGZ
+[ -f /rootfs/${kdmrcdir}/kdmrc ] || \
+ echo -e "# ${kdmrcdir}/kdmrc - \
+file generated by
+#\t$0: $date\n\
+[General]
+ConfigVersion=2.3
+StaticServers=:0
+ExportList=LANG
+PidFile=/var/run/kdm.pid
+AuthDir=/var/lib/xdm/authdir/authfiles
+ServerVTs=-7
+ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6
+[Xdmcp]
+Enable=$xdmcp
+Xaccess=/${xdmdir}/Xaccess
+Willing=/${xdmdir}/Xwilling
+[Shutdown]
+HaltCmd=/sbin/halt
+RebootCmd=/sbin/reboot
+[X-*-Core]
+ServerCmd=/usr/X11R6/bin/X -br
+ServerArgsLocal=-nolisten tcp
+TerminateServer=true
+Resources=/${xdmdir}/Xresources
+Setup=/${xdmdir}/Xsetup
+UserPath=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/var/X11R6/bin
+SystemPath=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:\
+/usr/X11R6/bin:/var/X11R6/bin
+Startup=/${xdmdir}/Xstartup
+Reset=/${xdmdir}/Xreset
+Session=/${xdmdir}/Xsession
+ClientLogFile=.xsession-errors-%s
+AutoReLogin=false
+AllowRootLogin=true
+AllowNullPasswd=true
+AllowShutdown=All
+SessionsDirs=/etc/X11/sessions,/usr/share/xsessions
+AuthNames=XDM-AUTHORIZATION-1,MIT-MAGIC-COOKIE-1
+[X-*-Greeter]
+ShowUsers=Selected
+SelectedUsers=
+UserList=false
+GUIStyle=default
+LogoArea=Clock
+GreetString=Diskless Linux (%h)
+GreetFont=Nimbus Sans l,20,-1,5,48,0,0,0,0,0
+StdFont=Nimbus Sans l,14,-1,5,48,0,0,0,0,0
+FailFont=Nimbus Sans l,14,-1,5,74,0,0,0,0,0
+AntiAliasing=true
+Language=$lang
+EchoMode=OneStar
+ShowLog=false
+UseTheme=${usetheme}
+Theme=/var/lib/openslx/themes/displaymanager
+UseBackground=true
+BackgroundCfg=/var/lib/openslx/themes/displaymanager/backgroundrc
+[X-:*-Greeter]
+PreselectUser=None
+FocusPasswd=true
+LoginMode=DefaultLocal
+AllowClose=false
+UseAdminSession=true
+[X-:0-Core]
+AutoLoginEnable=false
+ClientLogFile=.xsession-errors
+NoPassEnable=false
+[X-:0-Greeter]
+LogSource=/dev/xconsole
+UseAdminSession=false" >/mnt/${kdmrcdir}/kdmrc
+echo -e "[Desktop0]
+BackgroundMode=Flat
+BlendBalance=100
+BlendMode=NoBlending
+ChangeInterval=60
+Color1=0,51,102
+Color2=255,255,255
+CurrentWallpaper=0
+LastChange=0
+MinOptimizationDepth=1
+MultiWallpaperMode=NoMulti
+Pattern=triangles
+Program=
+ReverseBlending=false
+UseSHM=false
+Wallpaper=
+WallpaperList=
+WallpaperMode=NoWallpaper" \
+ >/mnt/var/lib/openslx/themes/displaymanager/backgroundrc
+}
+
#############################################################################
# dummy functions - avoid undefined functions in servconfig (functions are
# normally overwritten by settings within distro-functions - a file generated
@@ -971,6 +1067,11 @@ config_xdm () {
:
}
+# configure kdm as display manager
+config_kdm () {
+:
+}
+
# configure gdm as display manager
config_gdm () {
: