postinst is in vde2 2.3.2+r586-2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/sh
set -e
if [ "$1" = "configure" ]; then
if ! getent passwd vde2-net >/dev/null; then
adduser --quiet --system --group --no-create-home --home /var/run/vde2 vde2-net
fi
if ! [ -d /var/run/vde2 ]; then
mkdir -p /var/run/vde2
fi
if ! dpkg-statoverride --list /var/run/vde2 >/dev/null; then
chown vde2-net:vde2-net /var/run/vde2
chmod 2770 /var/run/vde2
fi
if [ ! -e /dev/.devfsd ] && [ ! -e /dev/net/tun ] && [ -x /dev/MAKEDEV ]; then
(cd /dev && ./MAKEDEV tun)
fi
fi
|