File: dublin-traceroute.postinst

package info (click to toggle)
dublin-traceroute 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 764 kB
  • sloc: cpp: 1,170; ansic: 109; python: 95; ruby: 17; sh: 13; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -eu

SETCAP=/sbin/setcap
TARGET=/usr/bin/dublin-traceroute

if [ "$(uname -s)" = "Linux" ]; then
	if [ -x $SETCAP ]; then
		$SETCAP cap_net_raw=ep $TARGET
	else
		echo "setcap(8) not installed. You will have to use sudo to run $TARGET"
	fi
else
	echo "setcap(8) not available. You will have to use sudo to run $TARGET"
fi

#DEBHELPER#

exit 0