nose-pluto/scripts/49-nose-reboot.rules

7 lines
230 B
Plaintext

polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.systemd1.manage-units" &&
action.lookup("unit") == "nose-reboot.service" &&
subject.user == "nose") {
return polkit.Result.YES;
}
});