#! /bin/sh # # rc.4 This file is executed by init(8) when the system is being # initialized for run level 4 (XDM) # # Version: @(#)/etc/rc.d/rc.4 2.00 02/17/93 # # Author: Fred N. van Kempen, # At least 47% rewritten by: Patrick J. Volkerding # # Modified by Jean-Philippe Guillemin for Zenwalk Linux # . /etc/shell-colors echo -e "${BOLDMAGENTA}Starting up X11 session manager...${COLOR_RESET}" # Update the applications database /usr/bin/update-desktop-database & # Try to use the GDM session manager: if [ -x /usr/bin/gdm ]; then exec /usr/bin/ionice -c2 -n0 /usr/bin/gdm -nodaemon 2>/dev/null 1>/dev/null fi # Try to use the KDM session manager: if [ -x /usr/bin/kdm ]; then exec /usr/bin/ionice -c2 -n0 /usr/bin/kdm -nodaemon 2>/dev/null 1>/dev/null fi # Try to use the SLIM session manager: if [ -x /usr/bin/slim ]; then rm -f /var/run/slim.lock exec /usr/bin/ionice -c2 -n0 /usr/bin/slim 2>/dev/null 1>/dev/null fi # If all you have is XDM, I guess it will have to do: if [ -x /usr/bin/xdm ]; then exec /usr/bin/ionice -c2 -n0 /usr/bin/xdm -nodaemon fi # error echo echo -e "${BOLDYELLOW}Hey, you don't have KDM, GDM, or XDM. Can't use runlevel 4 without" echo -e "one of those installed.${COLOR_RESET}" sleep 5 # All done.