Index of /acx100+111/acx-6.1/ifdo
Copyright (c) 2003 wlan.kewl.org Project
All rights reserved.
Licensed under the terms of the BSD license, see file LICENSE
$Id: README,v 1.1 2006/08/23 07:49:42 darron Exp $
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
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).
From the man page (man ieee80211) the following ioctl gets for a device are available