mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-23 16:51:32 +00:00
Changing upower configuration to use percentages and poweroff the device when the critical battery level has been reached
This commit is contained in:
parent
e04d8b7dd8
commit
0fbe88364f
10
live-build/ubuntu-touch/hooks/50-upower-poweroff-percentages.chroot
Executable file
10
live-build/ubuntu-touch/hooks/50-upower-poweroff-percentages.chroot
Executable file
@ -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
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user