chiark / gitweb /
rules: virtio - fix is to check if the 'name' attribute is present
[elogind.git] / rules / rules.d / 50-udev-default.rules
index da1535f..e8116a3 100644 (file)
@@ -18,7 +18,7 @@ KERNEL=="mwave",              GROUP="dialout"
 KERNEL=="hvc*|hvsi*",          GROUP="dialout"
 
 # virtio serial / console ports
-KERNEL=="vport*", SYMLINK+="virtio-ports/$attr{name}"
+KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
 
 # mem
 KERNEL=="null|zero|full|random|urandom", MODE="0666"