diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-05-14 21:56:37 +0300 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-05-14 21:56:37 +0300 |
commit | 95386d5e3e81550bb2541f876faa174814383336 (patch) | |
tree | b61783698018975bf49709e9eec5eb5316279e0a /net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules | |
parent | 4fbb9ca1e274fc52b48fab928bf78fe40dc21ebc (diff) | |
parent | 2a0eb3310cd466de041bca720e1f7c0b1689a985 (diff) |
Merge recent changes of github.com:Rogentos/kogaion-desktop
Diffstat (limited to 'net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules')
-rw-r--r-- | net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules b/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules new file mode 100644 index 00000000..7fca6472 --- /dev/null +++ b/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules @@ -0,0 +1,7 @@ +// 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"; + } +}); |