diff --git a/iso/overlay/etc/systemd/system/bee-cpuperf.service b/iso/overlay/etc/systemd/system/bee-cpuperf.service new file mode 100644 index 0000000..982c395 --- /dev/null +++ b/iso/overlay/etc/systemd/system/bee-cpuperf.service @@ -0,0 +1,12 @@ +[Unit] +Description=Set CPU governor to performance +DefaultDependencies=no +After=sysinit.target + +[Service] +Type=oneshot +ExecStart=/bin/sh -c 'for f in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do [ -f "$f" ] && echo performance > "$f"; done' +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target diff --git a/iso/overlay/etc/systemd/system/multi-user.target.wants/bee-cpuperf.service b/iso/overlay/etc/systemd/system/multi-user.target.wants/bee-cpuperf.service new file mode 120000 index 0000000..e6447f2 --- /dev/null +++ b/iso/overlay/etc/systemd/system/multi-user.target.wants/bee-cpuperf.service @@ -0,0 +1 @@ +/etc/systemd/system/bee-cpuperf.service \ No newline at end of file