mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-02 17:00:16 +00:00
34 lines
581 B
Bash
Executable file
34 lines
581 B
Bash
Executable file
#!/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
|