aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-03 23:16:15 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-03 23:17:08 -0400
commita0b1b95229c647a260c710d2f5556c0d9ff35075 (patch)
tree1c7bbd8453c5cfc76fc64361bfc8534bf78c90b9
parent4905d52cf59ee4f9ea5c7a90cc1b2309127aaad6 (diff)
systemctl enable moved and powertop.service added
powertop.service autotunes everything on boot, and systemctl enable had to be moved to accomodate its "late" addition.
-rwxr-xr-xbuild.sh3
-rw-r--r--services1
-rw-r--r--src/etc/systemd/system/powertop.service10
3 files changed, 12 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index e73cab9..ab4d8ba 100755
--- a/build.sh
+++ b/build.sh
@@ -5,8 +5,6 @@ if [ ! -e work/pacman ]; then
touch work/pacman
sed 's:#.*$::' packages | xargs pacman -Syu --needed --noconfirm
fi
-sed 's:#.*$::' services | xargs systemctl enable
-
ip link
export USE=czar
@@ -29,3 +27,4 @@ sh source.sh
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
mkinitcpio -P
+sed 's:#.*$::' services | xargs systemctl enable
diff --git a/services b/services
index 5c991d8..0218954 100644
--- a/services
+++ b/services
@@ -5,3 +5,4 @@ avahi-daemon
wpa_supplicant@wlp3s0
bluetooth
tlp
+powertop
diff --git a/src/etc/systemd/system/powertop.service b/src/etc/systemd/system/powertop.service
new file mode 100644
index 0000000..d9311c0
--- /dev/null
+++ b/src/etc/systemd/system/powertop.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Powertop Tuning
+
+[Service]
+Type=exec
+ExecStart=/usr/bin/powertop --auto-tune
+RemainAfterExit=true
+
+[Install]
+WantedBy=multi-user.target