summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-03-23 01:37:47 +0300
committerMaxim Devaev <[email protected]>2022-03-23 01:37:47 +0300
commit0d93862b371e8f687e49c390a48498663e63c779 (patch)
tree6fa8a5f44060102db487976c478db07e32fc5e9c
parentce347fad40f8f8a0958e89054df2d76ba69cf2d9 (diff)
v3 fan config
-rw-r--r--PKGBUILD5
-rw-r--r--configs/kvmd/fan/v3-hdmi.ini4
2 files changed, 9 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2ea5f561..c1f72868 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -198,6 +198,11 @@ for _variant in "${_variants[@]}"; do
install -DTm644 configs/os/udev/$_platform-$_board.rules \"\$pkgdir/etc/udev/rules.d/99-kvmd.rules\"
install -DTm444 configs/kvmd/main/$_platform-$_board.yaml \"\$pkgdir/etc/kvmd/main.yaml\"
+ if [ -f configs/fan/$_platform.ini ]; then
+ backup=(\"\${backup[@]}\" etc/kvmd/fan.ini)
+ install -DTm444 configs/kvmd/fan/$_platform.ini \"\$pkgdir/etc/kvmd/fan.ini\"
+ fi
+
if [ -f configs/os/modules-load/$_platform.conf ]; then
backup=(\"\${backup[@]}\" etc/modules-load.d/kvmd.conf)
install -DTm644 configs/os/modules-load/$_platform.conf \"\$pkgdir/etc/modules-load.d/kvmd.conf\"
diff --git a/configs/kvmd/fan/v3-hdmi.ini b/configs/kvmd/fan/v3-hdmi.ini
new file mode 100644
index 00000000..6b8b6977
--- /dev/null
+++ b/configs/kvmd/fan/v3-hdmi.ini
@@ -0,0 +1,4 @@
+[server]
+unix = /run/kvmd/fan.sock
+unix_rm = 1
+unix_mode = 666