diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-05-10 05:37:28 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-05-10 05:37:28 +0000 |
commit | c19e6e14e481d80cb91b9e76719ba63326c847d5 (patch) | |
tree | c318e23fed759e344dcc0bc24cf98d080e7c69cb /user/modemmanager/01-org.freedesktop.ModemManager.rules | |
parent | d96a6dae6ec38872c7106bb0f4f52dfe0e4b9dc9 (diff) | |
download | packages-c19e6e14e481d80cb91b9e76719ba63326c847d5.tar.gz packages-c19e6e14e481d80cb91b9e76719ba63326c847d5.tar.bz2 packages-c19e6e14e481d80cb91b9e76719ba63326c847d5.tar.xz packages-c19e6e14e481d80cb91b9e76719ba63326c847d5.zip |
user/modemmanager: new package
Diffstat (limited to 'user/modemmanager/01-org.freedesktop.ModemManager.rules')
-rw-r--r-- | user/modemmanager/01-org.freedesktop.ModemManager.rules | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/user/modemmanager/01-org.freedesktop.ModemManager.rules b/user/modemmanager/01-org.freedesktop.ModemManager.rules new file mode 100644 index 000000000..c57f4c55c --- /dev/null +++ b/user/modemmanager/01-org.freedesktop.ModemManager.rules @@ -0,0 +1,8 @@ +// Let users in either 'plugdev' or 'dialout' control ModemManager +polkit.addRule(function(action, subject) { + if (/^org\.freedesktop\.ModemManager1\.(Device\.Control|Contacts|Messaging|Location)$/.test(action.id) && + (subject.isInGroup("plugdev") || subject.isInGroup("dialout")) && subject.active) { + return "yes"; + } +}); + |