X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=126ed0745e21ad40a0fbcb33194458e7c8c8ea8b;hp=0000000000000000000000000000000000000000;hb=1dd7f69fed060f27777f4f1bee50e60af32f6783;hpb=ec04fc0f482c16e1dc4845ee1ba469b89a387582 diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..126ed07 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,49 @@ +#!/bin/sh +# postinst script for prometheus +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + + /etc/prometheus/check-kernel-qos + + if [ -x "/etc/init.d/prometheus" ]; then + update-rc.d prometheus defaults 40 >/dev/null + /etc/init.d/prometheus restart + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + +