]> git.sur5r.net Git - i3/i3status/blobdiff - debian/i3status.postinst
use correct units for battery calculation
[i3/i3status] / debian / i3status.postinst
index 7a385c8531bce5d1611789dc4a4891e5985a07aa..6507da8c75f6a4edd26c78b8c82c855656483612 100644 (file)
@@ -5,4 +5,14 @@ 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#
+
+exit 0