diff options
Diffstat (limited to 'testing/iputils/iputils.install')
-rw-r--r-- | testing/iputils/iputils.install | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testing/iputils/iputils.install b/testing/iputils/iputils.install index 2481fb396..d83f94426 100644 --- a/testing/iputils/iputils.install +++ b/testing/iputils/iputils.install @@ -1,7 +1,10 @@ post_install() { - setcap cap_net_raw=ep usr/bin/ping - setcap cap_net_raw=ep usr/bin/ping6 - echo " >> Traceroute is now provided by core/traceroute" + setcap cap_net_raw=ep usr/bin/ping 2>/dev/null || chmod +s usr/bin/ping + setcap cap_net_raw=ep usr/bin/ping6 2>/dev/null || chmod +s usr/bin/ping6 + + if [ "$(vercmp $2 20101006-3)" -le 0 ]; then + echo " >> Traceroute is now provided by core/traceroute" + fi } post_upgrade() { |