summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/bin
diff options
context:
space:
mode:
authorMichael Janczyk2008-06-02 14:55:57 +0200
committerMichael Janczyk2008-06-02 14:55:57 +0200
commitdd8f840f0bf3210924ca46655dd0217c83011c8d (patch)
tree88409e48eb80649c124f7fb59e2cff6fa8437234 /initramfs/initrd-stuff/bin
parentWrong name for checked in "dialog", updated Makefile for removed (diff)
downloadcore-dd8f840f0bf3210924ca46655dd0217c83011c8d.tar.gz
core-dd8f840f0bf3210924ca46655dd0217c83011c8d.tar.xz
core-dd8f840f0bf3210924ca46655dd0217c83011c8d.zip
Removed all kdm/gdm/xdm and most of X configuration. Before altering these file this step should be testet, so that painfull merging can be avoided. The files in initramfs/distro-specs and initramfs/initrd-stuff should be cleaned. Maybe we should drop support for a few older systems and refer to an older revision. Dhclinet config should be altered or removed since we do not use it anymore. Udhcp should be the default. Example line 267 in initrd-stuff/etc/functions, begins with: "# create configuration file for dhclient."
Removed obsolete theme plugin and the displaymanager themes from the themes dir in the repos. The themes (kdm/gdm) are located in the plugin dir anyway. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1831 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/bin')
-rwxr-xr-xinitramfs/initrd-stuff/bin/servconfig145
1 files changed, 0 insertions, 145 deletions
diff --git a/initramfs/initrd-stuff/bin/servconfig b/initramfs/initrd-stuff/bin/servconfig
index 928065a3..48b65a0a 100755
--- a/initramfs/initrd-stuff/bin/servconfig
+++ b/initramfs/initrd-stuff/bin/servconfig
@@ -322,151 +322,6 @@ if [ -n "$scratch" -a -z "$tmpisdisk" ] ; then
esac
fi
-#############################################################################
-# X11/GUI stuff
-if [ "x$start_x" != "xno" ] ; then
- # creating directories commonly needed for X11 in all distros
- # rest should be done via config_x11 function (distro specific)
- for i in /var/lib/xkb/compiled \
- /etc/X11/xdm \
- /etc/X11/sessions \
- /var/X11R6/bin \
- /var/run/xdmctl \
- /tmp/.ICE-unix \
- /tmp/.X11-unix ; do testmkd /mnt/$i; done
- chmod 1777 /mnt/tmp/.ICE-unix /mnt/tmp/.X11-unix
- chown 0:0 /mnt/tmp/.ICE-unix /mnt/tmp/.X11-unix
- echo "# file emtied by $0 during initramfs" > /mnt/etc/X11/xdm/Xservers
- # define additional sessions offered to the user (via dhcp/ldap config)
- # descsession -> deprecated by new vmware integration concept
- # write available X display manager to /etc/X11/xdm/Xaccess
- [ -n "$x_display_manager" ] && \
- echo -e "# /etc/X11/xdm/Xaccess - file generated by $0: \
-$date\n*\n%hostlist\t$x_display_manager\n*\t\tCHOOSER %hostlist"\
- >/mnt/etc/X11/xdm/Xaccess
-
- # define type of X session
- dsx="no"
- case "$start_x" in
- yes|YES|direct|DIRECT|query|QUERY)
- # direct connection onto the own displaymanager, which
- # should be enabled then
-# [ "x$start_xdmcp" = "xno" ] && $start_xdmcp="yes"
- init=""
- dsx="yes"
- xdmcp="false"
- echo -e "# /etc/X11/Xservers - file generated by \
-$0: $date\n:0 local X :0 vt07\n" >/mnt/etc/X11/xdm/Xservers
- ;;
- broadcast|BROADCAST)
- # the client will XDMCP broadcast and choose first available
- # X11 server
- [ "x$start_xdmcp" = "xgdm" ] || \
- init="7:5:respawn:${D_XORGBIN} vt7 -quiet -broadcast"
- ;;
- indirect|INDIRECT)
- # the client will try to XDMCP connect list of X11 servers
- if [ "x$start_xdmcp" = "xgdm" ] ; then
- init=""
- else
- init="7:5:respawn:${D_XORGBIN} vt7 -quiet -indirect $host_name"
- fi
- [ "x$start_xdmcp" = "xno" ] && start_xdmcp="yes"
- xdmcp="true"
- ;;
- *)
- # no display manager needed in kiosk mode
- # in this mode you have to provide the type of X session to start
- [ x$start_xdmcp != "x" ] || start_xdmcp="no";
- init="7:5:respawn:/var/X11R6/bin/kiosk /dev/tty7"
- # nobody can halt pc
- echo 'nobody ALL=NOPASSWD:/sbin/halt, /sbin/shutdown' >>/mnt/etc/sudoers
- echo -e "#!/bin/sh\n# /var/X11R6/bin/kiosk - file generated by $0: $date
- while ps aux|grep -i kiosk|grep -v \"grep\" &>/dev/null; do
- test -f /var/run/kiosk || break; sleep 3;
- done
- touch /var/run/kiosk
- for((i=0;\$i<=120;i=\$((\$i+1)))); do
- [ -e /var/run/resmgr.pid ] && break
- [ \$i = 120 ] && exit 1
- sleep 1
- done
- resmgr login nobody tty8 \\
- && resmgr grant nobody desktop \\
- && chown -R nobody:nogroup /var/lib/nobody \\
- && (su -c '(sleep 10; amixer -q sset Master 28 unmute; \\
- amixer -q sset PCM 28 unmute) &
- xinit /var/X11R6/bin/startgui $start_x \\
- -- vt7 -quiet' -l nobody &>/dev/null)
- rm /var/run/kiosk
- resmgr revoke nobody
- resmgr logout tty7
- killall X" >/mnt/var/X11R6/bin/kiosk
- # early start of kiosk session
- echo -e "\t# kiosk start added by $0\n\t\
-/var/X11R6/bin/kiosk &>/dev/null &" >>/mnt/etc/${D_INITDIR}/boot.slx
- cp /etc/startgui /mnt/var/X11R6/bin
- chmod a+x /mnt/var/X11R6/bin/kiosk /mnt/var/X11R6/bin/startgui
- rm /mnt/var/run/kiosk 2>/dev/null
- ;;
- esac
- echo -e "# entry made by $0 $date\n$init" >> /mnt/etc/inittab
- # most probably not needed any longer
- if [ -n ${D_XORGBIN} ] ; then
- testmkd /mnt/var/X11R6/bin
- ln -sf ${D_XORGBIN} /mnt/var/X11R6/bin/X
- fi
-fi
-
-# setup requested display manager
-if [ "x$start_xdmcp" != "xno" ] ; then
- testmkd /mnt/var/lib/xdm/authdir/authfiles
- testmkd /mnt/var/run/xdmctl
- if [ "$start_xdmcp" = "yes" ] ; then
- start_xdmcp=kdm
- fi
- # just ensure lowercase
- start_xdmcp=$(echo $start_xdmcp|sed -e "y/'GKWXDM'/'gkwxdm'/")
- case "$start_xdmcp" in
- wdm)
- # anywhere in use!?
- ;;
- kdm)
- # config is most probably not common in all distros?
- # distro specific function config_kdm
- config_kdm
- ;;
- gdm)
- # config is most probably not common in all distros?
- # distro specific function config_gdm
- config_gdm
- ;;
- *)
- # setup xdm (should be the same over the several distros)
- echo -e "# /etc/X11/xdm/xdm-config - file generated by\n\
-#\t$0: $date\n\nDisplayManager.errorLogFile:\t/var/log/xdm.errors\n\
-DisplayManager.pidFile:\t\t/var/run/xdm.pid\n\
-DisplayManager.authDir:\t\t/var/lib/xdm\n\
-DisplayManager.keyFile:\t\t/etc/X11/xdm/xdm-keys\n\
-DisplayManager.servers:\t\t/etc/X11/xdm/Xservers\n\
-DisplayManager.accessFile:\t/etc/X11/xdm/Xaccess\n\
-DisplayManager.willing:\t\tsu nobody -c /etc/X11/xdm/Xwilling\n\
-DisplayManager.*.authName:\tMIT-MAGIC-COOKIE-1\n\
-DisplayManager.*.authComplain:\tfalse\n\
-DisplayManager.*.setup:\t\t/etc/X11/xdm/Xsetup\n\
-DisplayManager.*.chooser:\t/etc/X11/xdm/RunChooser\n\
-DisplayManager.*.startup:\t/etc/X11/xdm/Xstartup\n\
-DisplayManager.*.session:\t/etc/X11/xdm/Xsession\n\
-DisplayManager.*.reset:\t\t/etc/X11/xdm/Xreset" \
- >/mnt/etc/X11/xdm/xdm-config
- [ "$xdmcp" = "false" ] && echo -e \
- "DisplayManager.requestPort:\t0\n" >>/mnt/etc/X11/xdm/xdm-config
- # distro specific function config_xdm (at least for runlevel links)
- config_xdm
- ;;
- esac
-fi
-
# script run timer
[ $DEBUGLEVEL -eq 8 ] && echo "** SW setup finished at $(sysup)"