瀏覽代碼

polkit bugfix

master
當前提交
f22a36b762
共有 2 個文件被更改,包括 25 次插入0 次删除
  1. +17
    -0
      blueman-polkit-bug.yaml
  2. +8
    -0
      files/polkit-blueman.rules

+ 17
- 0
blueman-polkit-bug.yaml 查看文件

@@ -0,0 +1,17 @@

- hosts:
- desktops
- laptops
remote_user: root
handlers:
- reboot:
tasks:
- name: polkit rules directory
file:
path: /etc/polkit-1/rules.d
state: directory
- name: polkit blueman rules fix
copy:
src: polkit-blueman.rules
dest: /etc/polkit-1/rules.d/81-blueman.rules
notify: reboot

+ 8
- 0
files/polkit-blueman.rules 查看文件

@@ -0,0 +1,8 @@
polkit.addRule(function(action, subject) {
if ((action.id == "org.blueman.rfkill.setstate" ||
action.id == "org.blueman.network.setup") &&
subject.local && subject.active && subject.isInGroup("netdev")) {

return polkit.Result.YES;
}
});

Loading…
取消
儲存