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 + +