Index: uspace/srv/devman/match.c
===================================================================
--- uspace/srv/devman/match.c	(revision e53794cd18f429f3843555710c0da7f171bc46af)
+++ uspace/srv/devman/match.c	(revision aed3e6a13374b1a34ec5021518f5f83de29cc4f1)
@@ -41,4 +41,6 @@
 #include "devman.h"
 #include "match.h"
+
+#define COMMENT	'#'
 
 /** Compute compound score of driver and device.
@@ -145,4 +147,9 @@
 		if (!skip_spaces(&buf))
 			break;
+
+		if (*buf == COMMENT) {
+			skip_line(&buf);
+			continue;
+		}
 		
 		/* read score */
Index: uspace/srv/devman/util.c
===================================================================
--- uspace/srv/devman/util.c	(revision e53794cd18f429f3843555710c0da7f171bc46af)
+++ uspace/srv/devman/util.c	(revision aed3e6a13374b1a34ec5021518f5f83de29cc4f1)
@@ -73,4 +73,10 @@
 }
 
+void skip_line(char **buf)
+{
+	while (**buf && **buf != '\n')
+		(*buf)++;
+}
+
 size_t get_nonspace_len(const char *str)
 {
Index: uspace/srv/devman/util.h
===================================================================
--- uspace/srv/devman/util.h	(revision e53794cd18f429f3843555710c0da7f171bc46af)
+++ uspace/srv/devman/util.h	(revision aed3e6a13374b1a34ec5021518f5f83de29cc4f1)
@@ -42,4 +42,5 @@
 
 extern bool skip_spaces(char **);
+extern void skip_line(char **);
 extern size_t get_nonspace_len(const char *);
 extern void replace_char(char *, char, char);
