[Dmraid-debian-commits] [SCM] Maintenance of the dmraid package branch, lenny, updated. f3a39013818e22a898b744fc42e4a138d328de3a

Giuseppe Iuculano giuseppe at iuculano.it
Fri Jan 23 17:50:08 UTC 2009


The following commit has been merged in the lenny branch:
commit 506dd5926cce0dcb83242dd65ab73a2361dcad4a
Author: Giuseppe Iuculano <giuseppe at iuculano.it>
Date:   Fri Jan 23 17:04:33 2009 +0100

    Fixed command-with-path-in-maintainer-script lintian warning

diff --git a/debian/dmraid.postinst b/debian/dmraid.postinst
index 52f9d88..82d6004 100644
--- a/debian/dmraid.postinst
+++ b/debian/dmraid.postinst
@@ -5,8 +5,8 @@ set -e
 
 case "$1" in
   configure)
-    if [ -x /usr/sbin/update-initramfs ]; then
-      /usr/sbin/update-initramfs -u
+    if type update-initramfs >/dev/null 2>&1; then
+      update-initramfs -u
     fi
 
     # Activate existing arrays now.
diff --git a/debian/dmraid.postrm b/debian/dmraid.postrm
index 4d0b387..865a28d 100644
--- a/debian/dmraid.postrm
+++ b/debian/dmraid.postrm
@@ -4,8 +4,8 @@ set -e
 
 case "$1" in
     remove|purge)
-	if [ -x /usr/sbin/update-initramfs ]; then
-      		/usr/sbin/update-initramfs -u
+	if type update-initramfs >/dev/null 2>&1; then
+		update-initramfs -u
     	fi
 
      ;;

-- 
Maintenance of the dmraid package



More information about the Dmraid-debian-commits mailing list