[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Detecting hardware with Ruby
From:       Jamis Buck <jgb3 () email ! byu ! edu>
Date:       2004-03-25 17:23:23
Message-ID: 4062FBEC.8090908 () email ! byu ! edu
[Download RAW message or body]

Jason Voegele wrote:

> I solved this problem by using init scripts.  I have two init scripts
> called setup_home and setup_work.  These scripts copy alternate versions
> of configuration files depending on whether I'm at work (attached to
> external monitor, keyboard, etc.) or at "home" (unattached laptop).  I
> have one of these two scripts start depending on the runlevel. I can then
> choose a run level at boot time, which is very easy with GRUB, and these
> scripts will choose the right settings for me.

Ah, much nicer.  I've got a custom runlevel already for booting without 
X--don't know why it didn't occur to me to do this for booting with a 
different X server layout.  Thanks, Jason!  This will do nicely.

I may still try to experiment with the hardware detection route... just 
for fun... ;)

-- 
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis

ruby -h | ruby -e 
'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a << 
r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic