Index of /acx100+111/acx-6.1/ifdo

 NameLast modifiedSize

 Parent Directory  -
 Makefile2007-10-29 22:45 612
 README.txt2007-10-29 22:45 1.6K
 err.cc2007-10-29 22:45 2.8K
 err.h2007-10-29 22:45 390
 main.cc2007-10-29 22:45 4.2K
 main.h2007-10-29 22:45 912
 net.cc2007-10-29 22:45 875
 net.h2007-10-29 22:45 478
 net80211.cc2007-10-29 22:45 921
 net80211.h2007-10-29 22:45 422


Copyright (c) 2003 wlan.kewl.org Project
All rights reserved.

Licensed under the terms of the BSD license, see file LICENSE
for details.

$Id: README,v 1.1 2006/08/23 07:49:42 darron Exp $

Usage:

ifdo -t time -i iface -r [ERROR | SINACTIVE | SACTIVE] command

    -t time:        wait up to time seconds before exiting
    -i interface:   peform operation on this interface
    -r requirement: test requirement
                    ERROR     - as found in man errno eg. ENXIO
                    SINACTIVE - no carrier
                    SACTIVE   - associated/active
    command:        command to execute when requirement is valid

Eg:

ifdo -t 30 -i wi0 -r SACTIVE '/sbin/dhclient wi0'
                                                
    wait for up to 30 seconds for interface wi0 to become active
    then run dhclient when it does. This allows an interface
    to associate with AP before running dhclient.

ifdo -t 30 -i wi0 -r ENXIO '/sbin/reboot'

    wait for up to 30 seconds for interface wi0 to exist, if not
    reboot. (although an uncommon requirement, this can be
    useful if an interface doesn't attach properly when booting,
    which has occured in my experience with one pccard bridge
    with a wi device plugged in).

notes:

From the man page (man ieee80211) the following ioctl gets for a device are available

[SIOCG80211]
    IEEE80211_IOC_AUTHMODE
    IEEE80211_IOC_CHANNEL
    IEEE80211_IOC_NUMSSIDS
    IEEE80211_IOC_NUMWEPKEYS
    IEEE80211_IOC_POWERSAVE
    IEEE80211_IOC_SSID
    IEEE80211_IOC_STATIONNAME
    IEEE80211_IOC_WEP
    IEEE80211_IOC_WEPKEY
    IEEE80211_IOC_WEPTXKEY