From 576a824a7456562dff779465376199649462cf3f Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 9 Feb 2015 04:22:58 +0100 Subject: Automatically (un)install the init script. --- debian/changelog | 6 ++++++ debian/postinst | 5 +++++ debian/postrm | 5 +++++ 3 files changed, 16 insertions(+) create mode 100755 debian/postinst create mode 100755 debian/postrm diff --git a/debian/changelog b/debian/changelog index 142c9a5..644e2b7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +util-vserver-netns (2.4-2) unstable; urgency=low + + * Automatically (un)install the init script. + + -- Alexander Sulfrian Mon, 09 Feb 2015 04:22:21 +0100 + util-vserver-netns (2.4-1) unstable; urgency=low * Unset nullglob after using it. diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..baf3e8e --- /dev/null +++ b/debian/postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +if test "$1" = configure; then + update-rc.d util-vserver-netns defaults +fi diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 0000000..315cd42 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,5 @@ +#!/bin/sh + +if test "$1" = purge; then + update-rc.d util-vserver-netns remove +fi -- cgit v1.2.3-1-g7c22