[Dmraid-debian-commits] [SCM] Maintenance of the dmraid package branch, master, updated. debian/1.0.0.rc15-1.exp4-9-gb3eb93f

Giuseppe Iuculano giuseppe at iuculano.it
Fri Jan 23 18:27:00 UTC 2009


The following commit has been merged in the master branch:
commit 1fd29861f06199f3c5efaca44b1551b391b83d40
Author: Giuseppe Iuculano <giuseppe at iuculano.it>
Date:   Fri Jan 23 19:14:57 2009 +0100

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

diff --git a/debian/dmraid.postinst b/debian/dmraid.postinst
index bb5bed5..4d1040f 100644
--- a/debian/dmraid.postinst
+++ b/debian/dmraid.postinst
@@ -5,6 +5,9 @@ set -e
 
 case "$1" in
   configure)
+    if command -v update-initramfs >/dev/null 2>&1; then
+	    update-initramfs -u
+    fi
       update-initramfs -u
     # Activate existing arrays now.
     udevadm trigger --subsystem-match=block --action=change
diff --git a/debian/dmraid.postrm b/debian/dmraid.postrm
index 4d0b387..d6904ef 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 command -v 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