File debian.postinst of Package netvfy-agent

#!/bin/sh

set -e

chmod 666 /dev/net/tun

if [ -x /sbin/setcap ]
then
	setcap cap_net_bind_service,cap_net_admin=ep /usr/bin/netvfy-agent
else
	echo "setcap(8) is not installed. You need to set CAP_NET_BIND and CAP_NET_ADMIN \
	to be able to run netvfy-agent without root privileges."
fi

exit 0
openSUSE Build Service is sponsored by