14 lines
247 B
Plaintext
14 lines
247 B
Plaintext
|
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
|