diff options
author | maximilian attems <maks@debian.org> | 2009-10-01 00:06:08 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2009-10-01 00:06:44 +0200 |
commit | 3158f6513227b63efd672505592ab537e043212c (patch) | |
tree | 34c7ece279079638f4b78dd4bb89038c45e22936 /kernel/postrm.d/initramfs-tools | |
parent | 339235ef8fc662c5ac29a4906680cf839f0fb711 (diff) | |
download | initramfs-tools-3158f6513227b63efd672505592ab537e043212c.tar.gz initramfs-tools-3158f6513227b63efd672505592ab537e043212c.zip |
kernel hook scripts: add comments
try to make the intention of the code more clear
Reported-by: Matthijs Kooijman <matthijs@stdin.nl>
Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'kernel/postrm.d/initramfs-tools')
-rwxr-xr-x | kernel/postrm.d/initramfs-tools | 2 |
1 files changed, 2 insertions, 0 deletions
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 |