On Sat, Sep 06, 2008 at 08:22:34PM -0600, Theo de Raadt wrote:
| CVSROOT: /cvs
| Module name: src
| Changes by: [EMAIL PROTECTED] 2008/09/06 20:22:34
|
| Modified files:
| sbin/ifconfig : ifconfig.8 ifconfig.c
|
| Log message:
| Allow some set-style commands to have zero arguments. If there is an
| argument after that command, check if it is a keyword, and if it is,
| that means the original command really has no argument. Get it?
| Now.. replace -m with media (no options), and -M with chan (no options).
| Try 'ifconfig -a media chan' on a wireless & ethernet machine after this.
| ok henning, reyk, thanks for the comments from others
|
I believe this affects the installscript too :
Configure the network? [yes]
Available interfaces are: hme0 hme1 hme2 hme3 hme4.
Which one do you wish to initialize? (or 'done') [hme0]
Symbolic (host) name for hme0? [sparc64]
usage: ifconfig [-AaC] [interface] [address_family] [address [dest_address]]
[parameters]
IPv4 address for hme0? (or 'none' or 'dhcp') [dhcp]
I think the following diff fixes this issue (not tested) :
Index: distrib/miniroot/install.sub
===================================================================
RCS file: /cvs/src/distrib/miniroot/install.sub,v
retrieving revision 1.436
diff -u -r1.436 install.sub
--- distrib/miniroot/install.sub 7 Jul 2008 15:53:15 -0000 1.436
+++ distrib/miniroot/install.sub 7 Sep 2008 13:20:38 -0000
@@ -556,7 +556,7 @@
_name=$resp
# Get and apply media options.
- _media=$(ifconfig -m $_ifs | grep "media ")
+ _media=$(ifconfig $_ifs media | grep "media ")
if [[ -n $_media ]]; then
cat <<__EOT
The media options for $_ifs are currently
Cheers,
Paul 'WEiRD' de Weerd
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/