From 2e5ceac844c32fb52f4f3042be5b872f8b0b4ff0 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 19 Apr 2015 07:25:59 +0200 Subject: Initial import from SVN --- packages/ubuntu/debian/postinst | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 packages/ubuntu/debian/postinst (limited to 'packages/ubuntu/debian/postinst') diff --git a/packages/ubuntu/debian/postinst b/packages/ubuntu/debian/postinst new file mode 100755 index 000000000..65bf04230 --- /dev/null +++ b/packages/ubuntu/debian/postinst @@ -0,0 +1,34 @@ +#!/bin/sh -e + +case "$1" in + configure) + # continue below + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +umask 022 + +# Update shared libs +echo "/usr/local/lib\n" > /etc/ld.so.conf.d/nprobe.conf +echo "Rebuilding ld cache..." +/sbin/ldconfig + +echo "Adding the nprobe startup script" +update-rc.d nprobe defaults 93 >/dev/null + +echo "Making the /etc/nprobe directory..." +mkdir -p /etc/nprobe/ + +echo "Making the /var/log/nprobe directory..." +mkdir -p /var/log/nprobe + +exit 0 -- cgit v1.2.3