From c8f9f09bcfec97ab54bf26b70995701d73410201 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 30 May 2015 14:43:58 +0200 Subject: Powerdevil: added Polkit Local Authority files. Fixes KDEBUG 344456. This fixes the missing Shutdown/Reboot and Suspend/Hibernate functionality. --- kde/doinst.sh/powerdevil | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kde/doinst.sh/powerdevil (limited to 'kde/doinst.sh/powerdevil') diff --git a/kde/doinst.sh/powerdevil b/kde/doinst.sh/powerdevil new file mode 100644 index 0000000..ccf6b67 --- /dev/null +++ b/kde/doinst.sh/powerdevil @@ -0,0 +1,18 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +# Move over the new policy files: +config etc/polkit-1/localauthority/50-local.d/30-org.freedesktop.upower.pkla.new +config etc/polkit-1/localauthority/50-local.d/40-org.freedesktop.consolekit.system.stop-multiple-users.pkla.new +config etc/polkit-1/localauthority/50-local.d/41-org.freedesktop.consolekit.system.restart-multiple-users.pkla.new + -- cgit v1.2.3