aboutsummaryrefslogtreecommitdiff
path: root/packages/ubuntu/debian/postinst
blob: 65bf042303e9b435ce98725d288cb92756d4e2ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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