Added ModemManager

This commit is contained in:
Gerben Jan Dijkman
2021-03-24 22:57:24 +01:00
parent 41221b558e
commit 0974983d2c
12 changed files with 1289 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
// Let users in plugdev group modify ModemManager
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.ModemManager1.Device.Control" ||
action.id == "org.freedesktop.ModemManager1.Contacts" ||
action.id == "org.freedesktop.ModemManager1.Messaging" ||
action.id == "org.freedesktop.ModemManager1.Location") &&
subject.isInGroup("plugdev") && subject.active) {
return "yes";
}
});