diff options
author | Luca Deri <deri@Lucas-MacBookPro.local> | 2015-04-19 07:25:59 +0200 |
---|---|---|
committer | Luca Deri <deri@Lucas-MacBookPro.local> | 2015-04-19 07:25:59 +0200 |
commit | 2e5ceac844c32fb52f4f3042be5b872f8b0b4ff0 (patch) | |
tree | 01af171f4af2b86efa64d0166dc540ee5c027c95 /packages/ubuntu/debian/postinst | |
parent | 7fa4694dadf869d1de2baa99383308a163902f8f (diff) |
Initial import from SVN
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 |