[Pkg-dkms-maint] [PATCH 3/5] Cleanup any old shutdown links using a postinst
Ben Hutchings
ben at decadent.org.uk
Sat May 2 18:27:58 UTC 2009
On Fri, 2009-05-01 at 16:43 -0500, Mario Limonciello wrote:
> ---
> debian/postinst | 20 ++++++++++++++++++++
> 1 files changed, 20 insertions(+), 0 deletions(-)
> create mode 100644 debian/postinst
>
> diff --git a/debian/postinst b/debian/postinst
> new file mode 100644
> index 0000000..ed99520
> --- /dev/null
> +++ b/debian/postinst
> @@ -0,0 +1,20 @@
> +#! /bin/sh
> +set -e
> +
> +case $1 in
> + configure)
> +
> + # Remove shutdown and reboot links;
> + # this init script does not need them.
> + if dpkg --compare-versions "$2" lt "2.0.22"; then
> + rm -f /etc/rc0.d/K74dkms_autoinstaller \
> + /etc/rc1.d/K74dkms_autoinstaller \
> + /etc/rc6.d/K74dkms_autoinstaller
This violates policy section 9.3.3.1:
http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.1
You must use update-rc.d to update the links.
Ben.
--
Ben Hutchings
No political challenge can be met by shopping. - George Monbiot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-dkms-maint/attachments/20090502/63c6b125/attachment.pgp>
More information about the Pkg-dkms-maint
mailing list