Randy McMurchy wrote:
> Randy McMurchy wrote these words on 05/30/05 07:35 CST:
> 
> 
>>What would be the best way to get the GNOME_PREFIX established in the
>>boot script?
>>
>>Should we just place a note in the GDM section of the book where the
>>bootscript is installed and request that the file be modified manually?
> 
> 
> Since the $PATH var is set to include /opt/gnome-2.10/bin and
> /opt/gnome-2.10/sbin in the bootscript, we could just remove the
> leading path from the commands, and let the script find the programs
> by searching the path.
> 
> But this would make the GDM script different than all the rest. And
> it would still be broken if $GNOME_PREFIX is anything other than /usr
> or /opt/gnome-2.10.
> 
> Just a suggestion here, to try to fix the breakage. I'll wait for
> the community to provide suggestions before I do anything.
> 

A couple of options...you could make the script with some intelligence,
but what I would do is install a broken bootscript and then add a sed.
Actually I wouldn't use a bootscript for gdm/xdm/kdm, but it was decided
in not one, but two different discussions (one was heated) that this is
easiest from the users POV as opposed to setting it up in inittab.

Easy way:  Have the script call "REPLACEME/gdm" and then add
"sed -i '[EMAIL PROTECTED]@$GNOME_PREFIX@' /etc/rc.d/init.d/gdm"
to the instructions.
-----------------------------------------------------------
Difficult/Slow/Intelligent way:

if [ -f /usr/bin/gdm ]; then
        /usr/bin/gdm
        evaluate_retval
else
        # Make certain the /opt/gnome is a symlink to
        # to the most current /opt/gnome-${VERSION}
        if [ -f /opt/gnome/bin/gdm ]; then
                /opt/gnome/bin/gdm
                evaluate_retval
        else
                # We can't find gdm, optionally replace this with
                # a long find.
                bootmesg "Not Found"
                /bin/false
                evaluate_retval
        fi
fi

---------------------------------------------------------
fi

For completeness, (and just to be plain hard headed) I'll throw out my
plea to do this in inittab, but the bootscript is 'safer' as I recall.
I'd have to look up the previous convos. :-)

Hope that helps.

-- DJ Lucas
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to