Subject: Re: /etc/rc.d/xdm hardcodes /usr/X11R6, i.e. conflicts with modular-x11
To: Erik Bertelsen <bertelsen.erik@gmail.com>
From: Perry E. Metzger <perry@piermont.com>
List: current-users
Date: 08/31/2007 13:10:32
"Erik Bertelsen" <bertelsen.erik@gmail.com> writes:
> 2007/8/29, Luke Mewburn <lukem@netbsd.org>:
>> On Sat, Aug 25, 2007 at 07:33:04PM +0200, Erik Bertelsen wrote:
>>   | It seems that /etc/rc.d/xdm as installed from
>>   | ...src/NetBSD/src/etc/rc.d hardcodes
>>   | the command to execute to be /usr/X11R6/bin/${name} and required_files
>>   | to /etc/X11/xdm/xdm-config.
>>   | This is on NetBSD-current and may also apply to NetBSD 4.
>>
>>
>> Have you tried using the existing rc.conf(5) framework
>> to override the 'command' variable in /etc/rc.d/xdm ?
>>
>>         echo 'command=/new/path/to/xdm' >> /etc/rc.conf.d/xdm
>
> This does actually work, but I still wonder whether this is too kludgy
> for a permanent solution -- at least the xdm package should mention
> this.

This isn't too kludgy -- this is the canonical way to override things
in rc.d scripts. I've used this for all sorts of things.


-- 
Perry E. Metzger		perry@piermont.com