From 3158f6513227b63efd672505592ab537e043212c Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Thu, 1 Oct 2009 00:06:08 +0200 Subject: kernel hook scripts: add comments try to make the intention of the code more clear Reported-by: Matthijs Kooijman Signed-off-by: maximilian attems --- kernel/postinst.d/initramfs-tools | 2 ++ kernel/postrm.d/initramfs-tools | 2 ++ 2 files changed, 4 insertions(+) diff --git a/kernel/postinst.d/initramfs-tools b/kernel/postinst.d/initramfs-tools index b4b286d..68124f7 100755 --- a/kernel/postinst.d/initramfs-tools +++ b/kernel/postinst.d/initramfs-tools @@ -12,10 +12,12 @@ if [ -n "$2" ]; then bootdir=$(dirname "$2") bootopt="-b ${bootdir}" else + # official Debian linux-images take care themself exit 0 fi fi +# avoid running multiple times if [ -n "$DEB_MAINT_PARAMS" ]; then eval set -- "$DEB_MAINT_PARAMS" if [ -z "$1" ] || [ "$1" != "configure" ]; then diff --git a/kernel/postrm.d/initramfs-tools b/kernel/postrm.d/initramfs-tools index 269650a..7811589 100755 --- a/kernel/postrm.d/initramfs-tools +++ b/kernel/postrm.d/initramfs-tools @@ -12,10 +12,12 @@ if [ -n "$2" ]; then bootdir=$(dirname "$2") bootopt="-b ${bootdir}" else + # official linux-images take care themself exit 0 fi fi +# avoid running multiple times if [ -n "$DEB_MAINT_PARAMS" ]; then eval set -- "$DEB_MAINT_PARAMS" if [ -z "$1" ] || [ "$1" != "remove" ]; then -- cgit v1.2.3