blob: 20e2e5900352861cb79b01c0421396388a3d7d9b (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Move the polkit dbus configuration files to the proper place:
mkdir -p $PKG/etc
mv $PKG/etc/kde/dbus-1 $PKG/etc/
mkdir -p $PKG/etc/polkit-1/localauthority/50-local.d
chmod 700 $PKG/etc/polkit-1/localauthority
# Add polkit policy file that brings back suspend/hibernate options:
install -m 0660 -o root \
$CWD/post-install/powerdevil/30-org.freedesktop.upower.pkla \
$PKG/etc/polkit-1/localauthority/50-local.d/30-org.freedesktop.upower.pkla.new
# Add polkit policy files that bring back shutdown/reboot:
install -m 0660 -o root \
$CWD/post-install/powerdevil/40-org.freedesktop.consolekit.system.stop-multiple-users.pkla \
$PKG/etc/polkit-1/localauthority/50-local.d/40-org.freedesktop.consolekit.system.stop-multiple-users.pkla.new
install -m 0660 -o root \
$CWD/post-install/powerdevil/41-org.freedesktop.consolekit.system.restart-multiple-users.pkla \
$PKG/etc/polkit-1/localauthority/50-local.d/41-org.freedesktop.consolekit.system.restart-multiple-users.pkla.new
|