On 02/17/18 13:42, Hans Petter Selasky wrote:
On 02/17/18 13:16, Andrew Reilly wrote:
On a side-note, the new devmatch workings are giving me 43 boot
warnings about "Malformed NOMATCH string: ''?'', and
devmatch_enable="NO" in /etc/rc.conf doesn't seem to help, and the new
matching is very very keen to load cc_vegas.ko, a lot. Here's the
output of devmatch -v, in case that helps:
Hi,
Does the attached patch solve the devmatch issue? Just apply it directly
on /etc and reboot.
--HPS
Please find updated patch attached.
--HPS
Index: etc/devd/devmatch.conf
===================================================================
--- etc/devd/devmatch.conf (revision 329447)
+++ etc/devd/devmatch.conf (working copy)
@@ -9,7 +9,7 @@
#
# Generic NOMATCH event
nomatch 100 {
- action "service devmatch start '?$_'";
+ action "/etc/rc.d/devmatch start '?$_'";
};
# Add the following to devd.conf to prevent this from running:
Index: etc/rc.d/devmatch
===================================================================
--- etc/rc.d/devmatch (revision 329447)
+++ etc/rc.d/devmatch (working copy)
@@ -37,13 +37,17 @@
start_cmd="${name}_start"
stop_cmd=':'
-[ -n "$2" ] && one_nomatch="-p '$2'"
+one_nomatch=$2
devmatch_start()
{
local x
- x=$(devmatch ${one_nomatch} | sort -u)
+ if [ -n "$one_nomatch" ]; then
+ x=$(devmatch -p "${one_nomatch}" | sort -u)
+ else
+ x=$(devmatch | sort -u)
+ fi
[ -n "$x" ] || return
_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"