[Bug 231441] 12.0-ALPHA6 network does not start at boot

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Sep 21 03:47:37 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231441

--- Comment #10 from Yuri Pankov <yuripv at yuripv.net> ---
Apparently, I'm being stupid, and the use case here is NOT to load driver via
loader.conf and rather rely on devd to load it and bring up wlan interface.  To
make up for my mistake, I've taken a look at the source of problem here.

Looks like devd::expand_one() treats "$(var)" as a subcommand to be passed down
to shell -- this works correctly for the items in "action", but not so good for
device matching.  In any case, removing parentheses from the wifi-driver-regex
seems to work for me loading the if_run.ko, and creating wlan0:

diff --git a/sbin/devd/devd.conf b/sbin/devd/devd.conf
index 956a2970d436..c9deaf5dada9 100644
--- a/sbin/devd/devd.conf
+++ b/sbin/devd/devd.conf
@@ -19,13 +19,13 @@ options {
        # Setup some shorthand for regex that we use later in the file.
        #XXX Yes, these are gross -- imp
        set scsi-controller-regex
-               "(aac|adv|adw|aha|ahc|ahd|aic|amr|bt|ciss|dpt|\
+               "aac|adv|adw|aha|ahc|ahd|aic|amr|bt|ciss|dpt|\
                esp|ida|iir|ips|isp|mlx|mly|mpr|mps|mpt|ncr|ncv|nsp|stg|sym|\
-               trm)\
+               trm\
                [0-9]+";
        set wifi-driver-regex
-               "(ath|bwi|bwn|ipw|iwi|iwm|iwn|malo|mwl|ral|rsu|rtwn|rum|run|\
-               uath|upgt|ural|urtw|wi|wpi|wtap|zyd)[0-9]+";
+               "ath|bwi|bwn|ipw|iwi|iwm|iwn|malo|mwl|ral|rsu|rtwn|rum|run|\
+               uath|upgt|ural|urtw|wi|wpi|wtap|zyd[0-9]+";
 };

 # Note that the attach/detach with the highest value wins, so that one can

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-net mailing list