Package: hdparm
Version: 6.1-5
Severity: important

Please replace /etc/dev.d/block/hdparm.dev with a /etc/udev/hdparm.rules
file containing:

ACTION="add", SUBSYSTEM="block", KERNEL="hd[a-z]", \
        RUN+="/etc/init.d/hdparm hotplug"

Then your package scripts will have to create a symlink from
/etc/udev/rules.d/z60_hdparm.rules to ../hdparm.rules ONLY the first
time the package is installed or upgraded and never again if the link
is removed by root.

The init script can be cleaned up a bit:

--- hdparm.orig 2005-09-19 00:01:20.000000000 +0200
+++ hdparm      2005-09-19 00:13:11.000000000 +0200
@@ -19,11 +19,7 @@
   ;;
   hotplug)
   UDEV=yes
-  if [ -n "$ACTION" ] && [ -n "$DEVNAME" ]; then
-    [ "$ACTION" = add ] || exit 0
-  else
-    exit 0
-  fi
+  [ "$DEVNAME" ] || exit 1
   ;;
   stop)
   exit 0

-- 
ciao,
Marco

Attachment: signature.asc
Description: Digital signature

Reply via email to