Replace an instance of ifexists.
authorRui Paulo <rpaulo@FreeBSD.org>
Tue, 2 Mar 2010 18:14:38 +0000 (18:14 +0000)
committerRui Paulo <rpaulo@FreeBSD.org>
Tue, 2 Mar 2010 18:14:38 +0000 (18:14 +0000)
etc/rc.d/netif

index dd192cd..4c18ee6 100644 (file)
@@ -252,7 +252,7 @@ childif_destroy()
 
        child_wlans=`get_if_var $ifn wlans_IF`
        for child in ${child_wlans}; do
-               if ! ifexists $child; then
+               if ! `ifconfig -n $child > /dev/null 2>&1`; then
                        continue
                fi
                ifn_stop $child