Manual/Wiki or other documentation for PXE install mainlyinstall.cfg?
mh at kernel32.de
Mon Jan 21 08:44:10 PST 2008
On Mon, 21 Jan 2008 16:38:32 +0000, Kimi <kimimeister at gmail.com> wrote:
> On 21/01/2008, Drew Weaver <drew.weaver at thenap.com> wrote:
>> Would have been, or would be nice if they could make an alias to
> 'the first Ethernet controller' (i.e. eth0). So that you could reference
> in such a way when there is only a single Ethernet controller in a
> ifconfig fxp0 name eth0 ?
well, at this point he doesn't seem to know wether fxp0 is his first
ethernet interface. Chicken Egg problem ;-)
This is a snippet from OpenBSD's installer (it's a ksh script).
Dunno wether it works on FreeBSD, though. But should :)
# Find all ethernet interfaces
A=`dmesg | grep 'address ..:..:..:..:..:..' | sed 's/^\(.*\) at .*/\1/'`
# Find the first interface with cable plugged in
for i in $A; do
if ifconfig $i | grep 'status: active'; then
IFACE=$i; export IFACE
if test "$IFACE"; then
echo Network interface is $IFACE
echo No network interface located. Aborting.
The status: active part could be a way to figure out which interface is
More information about the freebsd-stable