Auto hotspot implementation
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
[Adding or changing system-wide NetworkManager connections]
|
||||
Identity=unix-group:pipedal_d
|
||||
Action=org.freedesktop.NetworkManager.settings.modify.system
|
||||
ResultAny=yes
|
||||
ResultInactive=yes
|
||||
ResultActive=yes
|
||||
@@ -0,0 +1,6 @@
|
||||
// grant NetworkManager dbus permissions (no-prompts) to the pipedald systemd service.
|
||||
polpolkit.addRule(function(action, subject) {
|
||||
if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("pipedal_d")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user