]> git.sur5r.net Git - i3/i3status/blob - debian/i3status.postinst
include contrib/ in release tarballs
[i3/i3status] / debian / i3status.postinst
1 #!/bin/sh
2
3 set -e
4
5 # Allow users to get the speed of ethernet interfaces. This is not a security
6 # issue as i3status only queries the speed, it does not change any
7 # configuration.
8 if [ -x /sbin/setcap ]
9 then
10         setcap cap_net_admin=ep /usr/bin/i3status || true
11 else
12         echo "setcap(8) not installed. You need to set CAP_NET_ADMIN \
13 to be able to query the network link bandwidth without root privileges."
14 fi
15
16 #DEBHELPER#
17
18 exit 0