From b5bc27029a82ff37c36f6e9d06f23c3005fe3382 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 30 Aug 2007 14:14:54 +0200 Subject: [PATCH] rules: do not delete /lib/udev/devices/ nodes on "remove" --- etc/udev/rules.d/50-udev-default.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/udev/rules.d/50-udev-default.rules b/etc/udev/rules.d/50-udev-default.rules index f869f515..76f0976c 100644 --- a/etc/udev/rules.d/50-udev-default.rules +++ b/etc/udev/rules.d/50-udev-default.rules @@ -101,3 +101,6 @@ KERNEL=="sxctl", NAME="specialix_sxctl", SYMLINK+="%k" KERNEL=="rioctl", NAME="specialix_rioctl", SYMLINK+="%k" KERNEL=="iowarrior[0-9]*", NAME="usb/%k" +# do not delete static device nodes +ACTION=="remove", NAME=="?*", TEST=="/lib/udev/devices/$name", OPTIONS+="ignore_remove" + -- 2.39.5