diff options
Diffstat (limited to 'packages/ubuntu/debian/postinst')
-rwxr-xr-x | packages/ubuntu/debian/postinst | 34 |
1 files changed, 34 insertions, 0 deletions
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 |