On Sun, Jun 18, 2006 at 05:41:27PM +0200, martin f krafft wrote:

> If it's not too much trouble, maybe we could implement a limit-to
> keyword, which takes interface names as arguments. Then, when
> guessnet runs, it only runs tests without limits or where the limit
> set includes the interface to be configured.
> This would be handy primarily for the no-cable test, which makes no
> sense on wireless interfaces, PPP, TUN, etc. interfaces.
> Maybe a skip-for keyword would be trivial to add as well.

Hello Martin,

Thanks for the report.

This is something you can do by limiting the candidate profiles for an
interface in the mapping stanza.

The following example runs the ``no-cable`` test only on the ethernet
interface::

  mapping eth0
        script /usr/sbin/guessnet-ifupdown
        map default: auto
        map no-cable home work
  
  mapping wlan0
        script /usr/sbin/guessnet-ifupdown
        map default: auto
        map home work hotel

It's a good question, though: I'm adding this to the FAQ.


Ciao,

Enrico

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

Attachment: signature.asc
Description: Digital signature

Reply via email to