Add esvm service file

This commit is contained in:
EnumDev committed 2026-09-25 19:55:39 +03:00
1 parent e0318b3697
commit b597b7e0d0
3 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
name: switcheroo-control name: switcheroo-control
description: D-Bus service to check the availability of dual-GPU description: D-Bus service to check the availability of dual-GPU
version: "3.0" version: "3.0"
revision: 2 revision: 3
url: https://gitlab.freedesktop.org/hadess/switcheroo-control url: https://gitlab.freedesktop.org/hadess/switcheroo-control
license: GPL3-or-later license: GPL3-or-later
maintainers: maintainers:
+3
View File
@@ -23,6 +23,9 @@ package() {
# Remove systemd directory # Remove systemd directory
rm -r "$BPM_OUTPUT"/usr/lib/systemd rm -r "$BPM_OUTPUT"/usr/lib/systemd
# Install esvm service
install -Dm644 "$BPM_WORKDIR"/switcheroo-control.esv "$BPM_OUTPUT"/etc/esvm/services/switcheroo-control.esv
# Install package license # Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/switcheroo-control/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/switcheroo-control/COPYING
} }
+4
View File
@@ -0,0 +1,4 @@
name: switcheroo-control
description: start the switcheroo-control daemon
type: background
start_cmd: /usr/libexec/switcheroo-control