[Pkg-loop-aes-commits] r1325 - in /trunk/loop-aes-utils/debian: initramfs-tools-conf initramfs-tools-hook

lmamane at users.alioth.debian.org lmamane at users.alioth.debian.org
Sun Nov 12 16:27:42 CET 2006


Author: lmamane
Date: Sun Nov 12 16:27:42 2006
New Revision: 1325

URL: http://svn.debian.org/wsvn/pkg-loop-aes/?sc=1&rev=1325
Log:
Make unrecognised ${INITRAMFS_LOOPAES} behave the same as none set

Modified:
    trunk/loop-aes-utils/debian/initramfs-tools-conf
    trunk/loop-aes-utils/debian/initramfs-tools-hook

Modified: trunk/loop-aes-utils/debian/initramfs-tools-conf
URL: http://svn.debian.org/wsvn/pkg-loop-aes/trunk/loop-aes-utils/debian/initramfs-tools-conf?rev=1325&op=diff
==============================================================================
--- trunk/loop-aes-utils/debian/initramfs-tools-conf (original)
+++ trunk/loop-aes-utils/debian/initramfs-tools-conf Sun Nov 12 16:27:42 2006
@@ -22,12 +22,13 @@
 	    ;;
 	auto)
 	    ;;
-	'')
-	    # Default to not doing anything
+	*)
+	    if [ -n "${INITRAMFS_LOOPAES}" ]; then
+		echo "WARNING! (loop-aes) ignoring invalid INITRAMFS_LOOPAES value: '${INITRAMFS_LOOPAES}'" 1>&2
+	    fi
+	    # Default not doing anything
 	    return 1
 	    ;;
-	*)
-	    echo "WARNING! (loop-aes) ignoring invalid INITRAMFS_LOOPAES value: '${INITRAMFS_LOOPAES}'" 1>&2
     esac
 
     local rootoptions

Modified: trunk/loop-aes-utils/debian/initramfs-tools-hook
URL: http://svn.debian.org/wsvn/pkg-loop-aes/trunk/loop-aes-utils/debian/initramfs-tools-hook?rev=1325&op=diff
==============================================================================
--- trunk/loop-aes-utils/debian/initramfs-tools-hook (original)
+++ trunk/loop-aes-utils/debian/initramfs-tools-hook Sun Nov 12 16:27:42 2006
@@ -26,12 +26,12 @@
 	;;
     auto)
 	;;
-    '')
+    *)
+	if [ -n "${INITRAMFS_LOOPAES}" ]; then
+	    echo "WARNING! (loop-aes) ignoring invalid INITRAMFS_LOOPAES value: '${INITRAMFS_LOOPAES}'" 1>&2
+	fi
     	# Default not doing anything
 	exit 0
-	;;
-    *)
-	echo "WARNING! (loop-aes) ignoring invalid INITRAMFS_LOOPAES value: '${INITRAMFS_LOOPAES}'" 1>&2
 	;;
 esac
 




More information about the Pkg-loop-aes-commits mailing list