aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/rt-settings7
-rw-r--r--system/rt-settings.service13
2 files changed, 20 insertions, 0 deletions
diff --git a/scripts/rt-settings b/scripts/rt-settings
new file mode 100755
index 0000000..06ffa4f
--- /dev/null
+++ b/scripts/rt-settings
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+#Applies real-time kernel specific settings found in /etc/rt-settings.d/*
+
+for script in /etc/rt-settings.d/*
+do
+ . script
+done
diff --git a/system/rt-settings.service b/system/rt-settings.service
new file mode 100644
index 0000000..b458172
--- /dev/null
+++ b/system/rt-settings.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Apply Realtime-Kernel specific settings
+After=multi-user.target sound.target
+ConditionKernelCommandLine=systemd.setenv=REALTIME=true
+ConditionFileIsExecutable=/usr/bin/tuna
+
+[Service]
+Type=oneshot
+ExecStart=/usr/lib/systemd/scripts/rt-settings
+RemainAfterExit=true
+
+[Install]
+WantedBy=multi-user.target