From 93f2a06b3ca0f82ff93ab32997e4fd0473113745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Wed, 30 Mar 2016 16:20:20 +0200 Subject: [PATCH] Import patches-unapplied version 2.394 to ubuntu/xenial-proposed Imported using git-ubuntu import. Changelog parent: 42e2a00908e80b04bd9af90a74eac6fdb7604ec8 New changelog entries: [ Xavi Garcia ] * Adding a new hook to change the configuration file for upower. --- debian/changelog | 7 +++++++ .../hooks/50-upower-poweroff-percentages.chroot | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100755 live-build/ubuntu-touch/hooks/50-upower-poweroff-percentages.chroot diff --git a/debian/changelog b/debian/changelog index 45febbc7..89e62783 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (2.394) xenial; urgency=medium + + [ Xavi Garcia ] + * Adding a new hook to change the configuration file for upower. + + -- Ɓukasz 'sil2100' Zemczak Wed, 30 Mar 2016 16:20:20 +0200 + livecd-rootfs (2.393) xenial; urgency=medium * actually make the /etc/mtab link relative (LP: #1547033) diff --git a/live-build/ubuntu-touch/hooks/50-upower-poweroff-percentages.chroot b/live-build/ubuntu-touch/hooks/50-upower-poweroff-percentages.chroot new file mode 100755 index 00000000..e39a91eb --- /dev/null +++ b/live-build/ubuntu-touch/hooks/50-upower-poweroff-percentages.chroot @@ -0,0 +1,10 @@ +#! /bin/sh + +set -e + +echo "Updating upower configuration..." + +sed -i 's/^UsePercentageForPolicy=.*/UsePercentageForPolicy=true/' /etc/UPower/UPower.conf +sed -i 's/^CriticalPowerAction=.*/CriticalPowerAction=PowerOff/' /etc/UPower/UPower.conf + +