On Fri, Sep 15, 2006 at 11:10:01AM +0200, martin f krafft wrote:

> Remembering that you said that guessnet works by favourising stanzas
> for which multiple commands succeed, I tried to add
>   test command [ "$IFACE" != wifi ]
> but ifupdown does not like that:
> lapse:~# ifup wifi
> /etc/network/interfaces:25: duplicate option
> ifup: couldn't read interfaces file "/etc/network/interfaces"

You've hit the ifupdown limitation over which I've been fight with aj
quite a bit long time ago: ifupdown doesn't allow two lines in a stanza
to start with the same word.

This is buried deep in the manpage and admittedly not very hard to find:

  ifupdown does not allow two option lines in /etc/network/interfaces to
  start with the same word.  To work  around  this  limitation, multiple
  test (or guessnet) lines can have different numerals suffixed to their
  initial keywords (test1, test2, or guessnet1, guessnet2, and so on).


Ciao,

Enrico

-- 
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to