Skip to content

Commit

Permalink
Revert "chore: set upower CriticalPowerAction to ignore"
Browse files Browse the repository at this point in the history
This reverts commit 87bcdde.
  • Loading branch information
fly602 committed Dec 6, 2024
1 parent 42c4ea8 commit c06e261
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ prepareGfxmodeDetect () {
/usr/lib/deepin-daemon/grub2 -prepare-gfxmode-detect && update-grub || true
}

modifyUPowerConfig () {
if [ -f /etc/UPower/UPower.conf ]; then
sed -ibak '/^\[UPower]/,/^\[/{s/^AllowRiskyCriticalPowerAction=false/AllowRiskyCriticalPowerAction=true/};/^\[UPower]/,/^\[/{s/^CriticalPowerAction=.*/CriticalPowerAction=Ignore/}' /etc/UPower/UPower.conf

deb-systemd-invoke reload upower.service
fi
}

case "$1" in
configure)
if [ -x /usr/lib/deepin-daemon/default-terminal ];then
Expand All @@ -51,7 +43,6 @@ case "$1" in
fi
linkJavaFallbackFont
prepareGfxmodeDetect
modifyUPowerConfig
;;
triggered)
linkJavaFallbackFont
Expand Down

0 comments on commit c06e261

Please sign in to comment.