[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#295034: xdm: test for value of HEED_DEFAULT_DISPLAY_MANAGER before setting it



Package: xdm
Severity: wishlist
Tags: patch

when setting up a diskless terminal with a shared read-only root
filesystem, it is very difficult to start a different display manager on
each diskless terminal.

if /etc/init.d/xdm (and gdm, kdm, wdm) were patched to check that
HEED_DEFAULT_DISPLAY_MANAGER is not set before setting it to true, it
would be easier to invoke a different display manager on each individual
terminal:

HEED_DEFAULT_DISPLAY_MANAGER=false /etc/init.d/xdm start

the attached patch would allow for this sort of behavior.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i586)
Kernel: Linux 2.6.8-2-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
--- etc/init.d/xdm	2004-12-09 06:53:04.000000000 -0800
+++ etc/init.d/xdm.new	2005-02-12 20:24:08.000000000 -0800
@@ -6,7 +6,7 @@
 
 # To start xdm even if it is not the default display manager, change
 # HEED_DEFAULT_DISPLAY_MANAGER to "false."
-HEED_DEFAULT_DISPLAY_MANAGER=true
+test -z "$HEED_DEFAULT_DISPLAY_MANAGER" && HEED_DEFAULT_DISPLAY_MANAGER=true
 DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
 
 PATH=/bin:/usr/bin:/sbin:/usr/sbin

Attachment: signature.asc
Description: Digital signature


Reply to: