summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-05-05 14:33:18 -0400
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-05-05 14:33:18 -0400
commit6714b33254e1d62cc2528e54d83578c1a7b540fa (patch)
treef5c73b55629ab5a99ba413e19a6ae3f147f70370
parent39eb4f20377d089bc4ce7c9bef97f633b4242d11 (diff)
Updates ufw & mounting setup
-rwxr-xr-xpublic/thesiah.sh6
-rwxr-xr-xstatic/thesiah.sh6
2 files changed, 12 insertions, 0 deletions
diff --git a/public/thesiah.sh b/public/thesiah.sh
index 4a220dd..530efc1 100755
--- a/public/thesiah.sh
+++ b/public/thesiah.sh
@@ -487,6 +487,12 @@ umount /home/$name/Media
# ufw set up
ufwsetup || error "Failed to set up ufw rules."
+# tlp set up
+sed -Ei "s/^#(START_CHARGE_THRESH_BAT0=).*/\150/" /etc/tlp.conf
+sed -Ei "s/^#(STOP_CHARGE_THRESH_BAT0=).*/\175/" /etc/tlp.conf
+sed -Ei "s/^#(START_CHARGE_THRESH_BAT1=).*/\150/" /etc/tlp.conf
+sed -Ei "s/^#(STOP_CHARGE_THRESH_BAT1=).*/\175/" /etc/tlp.conf
+
# Change /bin/sh from bash to dash
ln -sf dash /bin/sh
diff --git a/static/thesiah.sh b/static/thesiah.sh
index 4a220dd..530efc1 100755
--- a/static/thesiah.sh
+++ b/static/thesiah.sh
@@ -487,6 +487,12 @@ umount /home/$name/Media
# ufw set up
ufwsetup || error "Failed to set up ufw rules."
+# tlp set up
+sed -Ei "s/^#(START_CHARGE_THRESH_BAT0=).*/\150/" /etc/tlp.conf
+sed -Ei "s/^#(STOP_CHARGE_THRESH_BAT0=).*/\175/" /etc/tlp.conf
+sed -Ei "s/^#(START_CHARGE_THRESH_BAT1=).*/\150/" /etc/tlp.conf
+sed -Ei "s/^#(STOP_CHARGE_THRESH_BAT1=).*/\175/" /etc/tlp.conf
+
# Change /bin/sh from bash to dash
ln -sf dash /bin/sh