diff options
| author | Daniel Baumann <daniel@debian.org> | 2008-04-15 22:35:43 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:47:59 +0100 |
| commit | 3d5289751b26b7364b8cebcb3e3e5605bdef97bd (patch) | |
| tree | 777fed2fca24f9a852e39408d763bf5981400624 | |
| parent | b9590afc81e0ef83eb4252f68c3ec41fc88a7756 (diff) | |
| download | live-boot-3d5289751b26b7364b8cebcb3e3e5605bdef97bd.tar.gz live-boot-3d5289751b26b7364b8cebcb3e3e5605bdef97bd.zip | |
Adjusting code formating in maintainer scripts.
| -rw-r--r-- | debian/postinst | 7 | ||||
| -rw-r--r-- | debian/postrm | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/debian/postinst b/debian/postinst index 71d71e3..b2d37bb 100644 --- a/debian/postinst +++ b/debian/postinst @@ -6,19 +6,20 @@ case "$(ls -l /boot/vmlinuz-* | wc -l)" in # which will use dpkg-trigger inside update-initramfs INITRAMFS_ARGS="-u" ;; + *) INITRAMFS_ARGS="-u -k all" ;; esac -if [ -x /usr/sbin/update-initramfs ] && [ "x$1" != "xtriggered" ] && \ - dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.18' +if [ -x /usr/sbin/update-initramfs ] && [ "${1}" != "triggered" ] && \ + dpkg --compare-versions "${DPKG_RUNNING_VERSION}" ge "1.14.18" then # this activates the trigger, if triggers are working update-initramfs ${INITRAMFS_ARGS} else # force it to actually happen - DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs ${INITRAMFS_ARGS} + DPKG_MAINTSCRIPT_PACKAGE="" update-initramfs ${INITRAMFS_ARGS} fi #DEBHELPER# diff --git a/debian/postrm b/debian/postrm index 71d71e3..b2d37bb 100644 --- a/debian/postrm +++ b/debian/postrm @@ -6,19 +6,20 @@ case "$(ls -l /boot/vmlinuz-* | wc -l)" in # which will use dpkg-trigger inside update-initramfs INITRAMFS_ARGS="-u" ;; + *) INITRAMFS_ARGS="-u -k all" ;; esac -if [ -x /usr/sbin/update-initramfs ] && [ "x$1" != "xtriggered" ] && \ - dpkg --compare-versions "$DPKG_RUNNING_VERSION" ge '1.14.18' +if [ -x /usr/sbin/update-initramfs ] && [ "${1}" != "triggered" ] && \ + dpkg --compare-versions "${DPKG_RUNNING_VERSION}" ge "1.14.18" then # this activates the trigger, if triggers are working update-initramfs ${INITRAMFS_ARGS} else # force it to actually happen - DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs ${INITRAMFS_ARGS} + DPKG_MAINTSCRIPT_PACKAGE="" update-initramfs ${INITRAMFS_ARGS} fi #DEBHELPER# |
