aboutsummaryrefslogtreecommitdiff
path: root/packages/ubuntu/debian/postinst
diff options
context:
space:
mode:
authorLuca Deri <deri@Lucas-MacBookPro.local>2015-04-19 07:25:59 +0200
committerLuca Deri <deri@Lucas-MacBookPro.local>2015-04-19 07:25:59 +0200
commit2e5ceac844c32fb52f4f3042be5b872f8b0b4ff0 (patch)
tree01af171f4af2b86efa64d0166dc540ee5c027c95 /packages/ubuntu/debian/postinst
parent7fa4694dadf869d1de2baa99383308a163902f8f (diff)
Initial import from SVN
Diffstat (limited to 'packages/ubuntu/debian/postinst')
-rwxr-xr-xpackages/ubuntu/debian/postinst34
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