Skip to content

Commit

Permalink
Set up battery charge limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Nov 11, 2023
1 parent 1a8c5e1 commit 75398a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pitti-post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ rm -r /etc/systemd/system /etc/systemd/user
# scanner permissions without scanner packages
echo 'ACTION=="add|change", ENV{DEVTYPE}=="usb_device", ENV{ID_MODEL}=="CanoScan", MODE="666"' > /usr/lib/udev/rules.d/canoscan.rules

# battery health
echo 'ACTION=="add|change", ATTR{type}=="Battery", ATTR{charge_stop_threshold}="80"' > /usr/lib/udev/rules.d/80-battery-health.rules

# update for Red Hat certificate
ln -s /etc/pki/ca-trust/source/anchors/2015-RH-IT-Root-CA.pem /etc/pki/tls/certs/2015-RH-IT-Root-CA.pem
ln -s /etc/pki/ca-trust/source/anchors/2022-RH-IT-Root-CA.pem /etc/pki/tls/certs/2022-RH-IT-Root-CA.pem
Expand Down

0 comments on commit 75398a7

Please sign in to comment.