diff options
author | brooks <brooks@FreeBSD.org> | 2009-03-13 07:12:25 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2009-03-13 07:12:25 +0000 |
commit | 5c7c975a70d57c591ceb6314a17810f22062977c (patch) | |
tree | 8b247ea6abf4a2e4a39c86bbdb20015cd8e97864 /etc/network.subr | |
parent | 70e9101f98c9308cb26e76f591e6bcccdf3b6849 (diff) | |
download | FreeBSD-src-5c7c975a70d57c591ceb6314a17810f22062977c.zip FreeBSD-src-5c7c975a70d57c591ceb6314a17810f22062977c.tar.gz |
Add support for setting the debug flags on wlan interfaces after the are
created using wlandebug_<ifn> variables.
Diffstat (limited to 'etc/network.subr')
-rw-r--r-- | etc/network.subr | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/network.subr b/etc/network.subr index 0a64f96..66fe250 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -499,7 +499,7 @@ clone_down() # childif_create() { - local cfg child child_wlans create_args ifn i + local cfg child child_wlans create_args debug_flags ifn i cfg=1 ifn=$1 @@ -509,10 +509,18 @@ childif_create() for child in ${child_wlans}; do create_args="wlandev $ifn `get_if_var $child create_args_IF`" + debug_flags="`get_if_var $child wlandebug_IF`" + if expr $child : 'wlan[0-9][0-9]*$' >/dev/null 2>&1; then ifconfig $child create ${create_args} && cfg=0 + if [ -n "${debug_flags}" ]; then + wlandebug -i $child ${debug_flags} + fi else i=`ifconfig wlan create ${create_args}` + if [ -n "${debug_flags}" ]; then + wlandebug -i $i ${debug_flags} + fi ifconfig $i name $child && cfg=0 fi if autoif $child; then |