debian/i3status.postinst: Check if setcap is there, print info message if not (Thanks Sander)
This commit is contained in:
parent
319664ce43
commit
efaacee726
8
debian/i3status.postinst
vendored
8
debian/i3status.postinst
vendored
@ -5,7 +5,13 @@ set -e
|
||||
# Allow users to get the speed of ethernet interfaces. This is not a security
|
||||
# issue as i3status only queries the speed, it does not change any
|
||||
# configuration.
|
||||
setcap cap_net_admin=ep /usr/bin/i3status || true
|
||||
if [ -x /sbin/setcap ]
|
||||
then
|
||||
setcap cap_net_admin=ep /usr/bin/i3status || true
|
||||
else
|
||||
echo "setcap(8) not installed. You need to set CAP_NET_ADMIN \
|
||||
to be able to query the network link bandwidth without root privileges."
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user