diff options
author | dougb <dougb@FreeBSD.org> | 2009-08-26 21:08:41 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2009-08-26 21:08:41 +0000 |
commit | 4803a8253e532f7f29f513ef60a395b82af3f4fc (patch) | |
tree | b7ea977eacf035de57d9db7f57a2bf04c435213d /etc/rc.d | |
parent | 35cadb98eb5f2d38a76f10f94b1be6c4ed156da2 (diff) | |
download | FreeBSD-src-4803a8253e532f7f29f513ef60a395b82af3f4fc.zip FreeBSD-src-4803a8253e532f7f29f513ef60a395b82af3f4fc.tar.gz |
MFC 196436;
Move is_wired_interface() from rc.d/wpa_supplicant into network.subr,
simplify it a bit, and make use of that method to determine if an
interface is a candidate for IPv6 rtsol rather than listing all of the
possible wireless interfaces that should _not_ get rtsol'ed.
This change is only relevant for 8.0+ unless the "wlan mandatory" code
gets ported back to RELENG_7.
Approved by: re (kib)
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/wpa_supplicant | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/etc/rc.d/wpa_supplicant b/etc/rc.d/wpa_supplicant index 192ca96..8514efc 100755 --- a/etc/rc.d/wpa_supplicant +++ b/etc/rc.d/wpa_supplicant @@ -18,18 +18,6 @@ if [ -z "$ifn" ]; then return 1 fi -is_wired_interface() -{ - media=`ifconfig $1 2>/dev/null | while read line; do - case "$line" in - *media:?Ethernet*) - echo Ethernet - ;; - esac - done` - test "$media" = "Ethernet" -} - is_ndis_interface() { case `sysctl -n net.wlan.${1#wlan}.%parent 2>/dev/null` in |