diff --git a/debian/changelog b/debian/changelog index 45febbc7..951531ec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (2.394) UNRELEASED; 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 + +