- jos compat/udevfs promjena
authorDinko Korunic <kreator@carnet.hr>
Mon, 25 May 2009 18:26:43 +0000 (20:26 +0200)
committerDinko Korunic <kreator@carnet.hr>
Mon, 25 May 2009 18:26:43 +0000 (20:26 +0200)
debian/postinst

index 462ad6f..8c0cfe0 100755 (executable)
@@ -147,9 +147,12 @@ if [ ! -z "$SHIELD" ]; then
     echo -n " execshield1"
 fi
 
-# remove obsolete devfs compat links
+# remove obsolete devfs/compat links and restore normal udev behaviour
 rm -f /etc/udev/rules.d/devfs.rules /etc/udev/rules.d/compat.rules \
     /etc/udev/rules.d/compat-full.rules
+if [ ! -e /etc/udev/rules.d/udev.rules ]; then
+    ln -s ../udev.rules /etc/udev/rules.d/udev.rules
+fi
 udevcontrol reload_rules >/dev/null 2>&1 || true
 echo -n " udev"