diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2015-04-23 17:13:37 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-04-28 00:51:46 +0200 |
commit | 78f4aa790d1ba15270480f2b16b132d87d28fb0b (patch) | |
tree | 5bd54ab0fac648bd0ab9b5fb21b381b8dd12032d /testing/modemmanager/modemmanager.rules | |
parent | 82b653169415b01862f56c3c86825c7888773f69 (diff) | |
download | aports-78f4aa790d1ba15270480f2b16b132d87d28fb0b.tar.bz2 aports-78f4aa790d1ba15270480f2b16b132d87d28fb0b.tar.xz |
testing/modemmanager: new aport
ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G)
devices and connections. Whether built-in devices, USB dongles, bluetooth-paired
telephones, or professional RS232/USB devices with external power supplies,
ModemManager is able to prepare and configure the modems and setup connections
with them.
http://www.freedesktop.org/wiki/Software/ModemManager/
Diffstat (limited to 'testing/modemmanager/modemmanager.rules')
-rw-r--r-- | testing/modemmanager/modemmanager.rules | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/modemmanager/modemmanager.rules b/testing/modemmanager/modemmanager.rules new file mode 100644 index 0000000000..09e586e642 --- /dev/null +++ b/testing/modemmanager/modemmanager.rules @@ -0,0 +1,8 @@ +// Let users in plugdev group modify ModemManager +polkit.addRule(function(action, subject) { + if (/^org\.freedesktop\.ModemManager1\.(Device\.Control|Contacts|Messaging|Location)$/.test(action.id) && + subject.isInGroup("plugdev") && subject.active) { + return "yes"; + } +}); + |