void-packages/srcpkgs/iputils/INSTALL

14 lines
247 B
Text
Raw Normal View History

case ${ACTION} in
post)
# Set required capability to ping{,6}.
for f in ping ping6; do
set +e
setcap cap_net_raw=ep sbin/${f}
if [ $? -ne 0 ]; then
echo "Failed to set cap_net_raw capability on sbin/${f}."
exit 0
fi
done
;;
esac