Commit 4c92625c authored by Anton Midyukov's avatar Anton Midyukov

phone, phone.mk: replace 60-mobile.rules to polkit-rule-mobile package

parent 187ccbd2
......@@ -11,6 +11,7 @@ mixin/phone-base: use/ntp/chrony use/repo use/branding/notes \
use/deflogin/root use/l10n/ru_RU use/xdg-user-dirs
@$(call add,THE_BRANDING,notes indexhtml)
@$(call add,THE_LISTS,mobile/base)
@$(call add,THE_PACKAGES,polkit-rule-mobile)
@$(call add,USERS,altlinux:271828:1:1)
@$(call set,LOCALES,ru_RU en_US)
@$(call set,LOCALE,ru_RU)
......
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.ModemManager1.Contacts" ||
action.id == "org.freedesktop.ModemManager1.Device.Control" ||
action.id == "org.freedesktop.ModemManager1.Location" ||
action.id == "org.freedesktop.ModemManager1.Messaging" ||
action.id == "org.freedesktop.ModemManager1.Time" ||
action.id == "org.freedesktop.ModemManager1.USSD" ||
action.id == "org.freedesktop.ModemManager1.Voice" ||
action.id == "org.freedesktop.NetworkManager.settings.modify.system")
{
return polkit.Result.YES;
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment