=== modified file 'TODO' --- TODO 2009-01-12 22:02:33 +0000 +++ TODO 2009-01-18 00:16:57 +0000 @@ -53,16 +53,13 @@ ** TODO [#B] "--test" option For testing decryption before rebooting. -* [#A] Package +* Package ** /usr/share/initramfs-tools/hooks/mandos *** TODO [#C] Do not install in initrd.img if configured not to. Use "/etc/initramfs-tools/conf.d/mandos"? Definitely a debconf question. ** TODO [#C] /etc/bash_completion.d/mandos From XML sources directly? -** TODO initramfs-tools-script :test: - Do not insert plugin-runner as keyscript if a kernel parameter - "mandos=off" is passed. #+STARTUP: showall === modified file 'debian/mandos-client.postinst' --- debian/mandos-client.postinst 2009-01-06 05:08:37 +0000 +++ debian/mandos-client.postinst 2009-01-18 00:16:57 +0000 @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/sh -e # This script can be called in the following ways: # # After the package was installed: @@ -26,7 +26,7 @@ # Add user and group add_mandos_user(){ # Rename old "mandos" user and group - case "$(getent passwd mandos)" in + case "`getent passwd mandos`" in *:Mandos\ password\ system,,,:/nonexistent:/bin/false) usermod --login _mandos mandos groupmod --new-name _mandos mandos @@ -62,7 +62,7 @@ ;; *) - echo "$0 called with unknown argument \`$1'" 1>&2 + echo "$0 called with unknown argument '$1'" 1>&2 exit 1 ;; esac === modified file 'debian/mandos-client.postrm' --- debian/mandos-client.postrm 2008-09-19 20:54:58 +0000 +++ debian/mandos-client.postrm 2009-01-18 00:16:57 +0000 @@ -50,7 +50,7 @@ ;; *) - echo "$0 called with unknown argument \`$1'" 1>&2 + echo "$0 called with unknown argument '$1'" 1>&2 exit 1 ;; esac === modified file 'debian/mandos.postinst' --- debian/mandos.postinst 2009-01-06 05:08:37 +0000 +++ debian/mandos.postinst 2009-01-18 00:16:57 +0000 @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/sh -e # This script can be called in the following ways: # # After the package was installed: @@ -18,7 +18,7 @@ case "$1" in configure) # Rename old "mandos" user and group - case "$(getent passwd mandos)" in + case "`getent passwd mandos`" in *:Mandos\ password\ system,,,:/nonexistent:/bin/false) usermod --login _mandos mandos groupmod --new-name _mandos mandos @@ -37,7 +37,7 @@ ;; *) - echo "$0 called with unknown argument \`$1'" 1>&2 + echo "$0 called with unknown argument '$1'" 1>&2 exit 1 ;; esac === modified file 'debian/mandos.prerm' --- debian/mandos.prerm 2008-09-21 13:42:34 +0000 +++ debian/mandos.prerm 2009-01-18 00:16:57 +0000 @@ -6,12 +6,12 @@ set -e # summary of how this script can be called: -# * `remove' -# * `upgrade' -# * `failed-upgrade' -# * `remove' `in-favour' -# * `deconfigure' `in-favour' -# `removing' +# * 'remove' +# * 'upgrade' +# * 'failed-upgrade' +# * 'remove' 'in-favour' +# * 'deconfigure' 'in-favour' +# 'removing' # # for details, see /usr/share/doc/packaging-manual/ @@ -28,7 +28,7 @@ upgrade|failed-upgrade) ;; *) - echo "prerm called with unknown argument \`$1'" >&2 + echo "prerm called with unknown argument '$1'" >&2 exit 0 ;; esac