Debian Codegraph @

debian/dublin-traceroute.postinst

raw
1 #!/bin/sh
2
3 set -eu
4
5 SETCAP=/sbin/setcap
6 TARGET=/usr/bin/dublin-traceroute
7
8 if [ "$(uname -s)" = "Linux" ]; then
9 if [ -x $SETCAP ]; then
10 $SETCAP cap_net_raw=ep $TARGET
11 else
12 echo "setcap(8) not installed. You will have to use sudo to run $TARGET"
13 fi
14 else
15 echo "setcap(8) not available. You will have to use sudo to run $TARGET"
16 fi
17
18 #DEBHELPER#
19
20 exit 0