Subject: CVS commit: src/distrib/utils/sysinst
To: None <source-changes@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@netbsd.org>
List: source-changes
Date: 07/29/2007 20:44:27
Module Name:	src
Committed By:	jmmv
Date:		Sun Jul 29 20:44:27 UTC 2007

Modified Files:
	src/distrib/utils/sysinst: net.c

Log Message:
Use get_media_subtype_string instead of get_media_mode_string to determine
the card's current media type.  Otherwise it always defaults to 'autoselect'
which is not supported by all cards (e.g. cs(4) in NetBSD/shark).

This was causing problems when configuring an interface with dhclient, as
sysinst could incorrectly reset the media type (the net_media variable) to
'autoselect', writing incorrect ifconfig.<if> files in the target file
system.


To generate a diff of this commit:
cvs rdiff -r1.115 -r1.116 src/distrib/utils/sysinst/net.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.