summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2010-04-06 14:44:53 +0200
committerMichael Stapelberg <michael@stapelberg.de>2010-04-06 14:44:53 +0200
commitd60fc3fa43d8f8674a150bfa61bad4ae7407521a (patch)
treed53ecd67ef41e65624c4132f7b06713cc22ae85a
parent7665643894cf20108ba01b7fed6bc9f2fe452668 (diff)
debian: add postinst file which issues setcap
-rw-r--r--debian/i3status.postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/i3status.postinst b/debian/i3status.postinst
new file mode 100644
index 0000000..bf67a48
--- /dev/null
+++ b/debian/i3status.postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# 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