Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 43995 Details for
Bug 70689
Start xdm sooner
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
fastxdm
xdmfast (text/plain), 3.31 KB, created by
Paul Pacheco
on 2004-11-15 08:00:52 UTC
(
hide
)
Description:
fastxdm
Filename:
MIME Type:
Creator:
Paul Pacheco
Created:
2004-11-15 08:00:52 UTC
Size:
3.31 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License, v2 ># $Header: /home/cvsroot/gentoo-x86/x11-base/xfree/files/4.3.99.8/xdm.start,v 1.1 2003/07/11 22:54:09 spyderous Exp $ > ># This is here to serve as a note to myself, and future developers. ># ># Any Display manager (gdm,kdm,xdm) have the following problem: if ># it is started before any getty, and no vt is specified, it will ># usually run on vt2. When the getty on vt2 then starts, and the ># DM is already started, the getty will take control of the keyboard, ># leaving us with a "dead" keyboard. ># ># Resolution: add the following line to /etc/inittab ># ># x:a:once:/etc/X11/startDM.sh ># ># and have /etc/X11/startDM.sh start the DM in daemon mode if ># a lock is present (with the info of what DM should be started), ># else just fall through. ># ># How this basically works, is the "a" runlevel is a additional ># runlevel that you can use to fork processes with init, but the ># runlevel never gets changed to this runlevel. Along with the "a" ># runlevel, the "once" key word means that startDM.sh will only be ># run when we specify it to run, thus eliminating respawning ># startDM.sh when "xdm" is not added to the default runleve, as was ># done previously. ># ># This script then just calls "tellinit a", and init will run ># /etc/X11/startDM.sh after the current runlevel completes (this ># script should only be added to the actual runlevel the user is ># using). ># ># Martin Schlemmer ># aka Azarah ># 04 March 2002 > > ># Start X Font Server before X >depend() { > use xfs hotplug >} > >setup_dm() { > source /etc/profile.env > export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}" > > local MY_XDM="$(echo ${DISPLAYMANAGER} | awk '{ print tolower($1) }')" > case "${MY_XDM}" in > kdm|kde|kde2|kde3) > EXE="$(which kdm)" > ;; > entrance*) > EXE="$(which entranced)" > ;; > gdm|gnome) > EXE=/usr/bin/gdm > ;; > wdm) > EXE=/usr/bin/wdm > ;; > *) > EXE= > for x in /usr/bin /usr/X11R6/bin > do > # Fix #65586, where MY_XDM is empty so EXE=somedir > [ -x "${x}/${MY_XDM}" -a -f "${x}/${MY_XDM}" ] \ > && EXE="${x}/${MY_XDM}" > done > [ -z "${EXE}" ] && EXE="/usr/X11R6/bin/xdm" > ;; > esac > > test ! -x "${EXE}" && EXE=/usr/X11R6/bin/xdm > > SERVICE="${EXE##*/}" >} > >start() { > local result > > setup_dm > > ebegin "Starting Display Manager ${SERVICE}" > > # Great new Gnome2 feature, AA > # We enable this by default > export GDK_USE_XFT=1 > save_options "service" "${EXE}" > > /sbin/start-stop-daemon --start --quiet --exec ${EXE} > result="$?" > > wait; > > if [ "${retval}" -ne 0 ] > then > # make sure we do not have a misbehaving DM > killall -9 ${EXE##*/} > fi > > eend ${retval} "Error stopping Display Manager" >} > >stop() { > > setup_dm > > local retval=0 > local curvt="$(fgconsole)" > local myexe="$(get_options "service")" > local myservice="${myexe##*/}" > > ebegin "Stopping ${myservice}" > rm -f ${svcdir}/options/xdm/service > > if [ "$(ps -A | grep -e "${myservice}")" ] > then > start-stop-daemon --stop --quiet \ > --exe ${myexe} &>/dev/null > > retval=$? > else > retval=1 > fi > > #switch back to original vt > chvt "${curvt}" &>/dev/null > eend ${retval} "Error stopping ${myservice}." > > return ${retval} >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 70689
:
43668
|
43673
|
43995
|
43996
|
44318
|
44319
|
44325
|
44326
|
45063
|
46437
|
46811
|
46812
|
46813
|
50419
|
50420
|
50421
|
109095