Imported using git-ubuntu import.
Changelog parent: 42e2a00908
New changelog entries:
[ Xavi Garcia ]
* Adding a new hook to change the configuration file for upower.
impish
2.394
parent
42e2a00908
commit
93f2a06b3c
@ -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…
Reference in new issue