Subject: changing boot behaviour automatically?
To: None <netbsd-users@netbsd.org>
From: Malcolm Herbert <mjch@mjch.net>
List: netbsd-users
Date: 08/13/2006 15:38:59
I have a disk image I'm using on two machines at the moment. One of
these is used as a server and the other is a workstation.

The server currently has extra IP aliases, a DHCP server, proxies and
all the sorts of stuff that a server normally does ... the workstation
has a different X config and some other bits and pieces which don't
appear on the server.

I don't really want the workstation to try running these services
when it starts, but fixing this issue involves changing /etc/rc.conf
and a few other files here and there and I'd prefer to have this done
automagically.

What would be the best method to affect this change? /etc/rc.conf is
a shell script, so I suppose I could have it look to the output of
ifconfig and work out from the MAC address which machine it's running
on, but that seemed a little hackish to me ...

-- 
Malcolm Herbert                                This brain intentionally
mjch@mjch.net                                                left blank