2012-01-23 13:27:39 +01:00
|
|
|
case ${ACTION} in
|
|
|
|
post)
|
|
|
|
# Set required capability to ping{,6}.
|
|
|
|
for f in ping ping6; do
|
2012-10-17 16:56:58 +02:00
|
|
|
setcap cap_net_raw=ep usr/sbin/${f} 2>/dev/null || \
|
|
|
|
chmod +s usr/sbin/${f}
|
2012-01-23 13:27:39 +01:00
|
|
|
done
|
|
|
|
;;
|
|
|
|
esac
|