From b597b7e0d02ce7d934c13f06d39cf3f60eef8145 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 25 Sep 2026 19:55:39 +0300 Subject: [PATCH] Add esvm service file --- info.yml | 2 +- recipe.sh | 3 +++ source-files/switcheroo-control.esv | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 source-files/switcheroo-control.esv diff --git a/info.yml b/info.yml index fd29511..ac9fc10 100644 --- a/info.yml +++ b/info.yml @@ -1,7 +1,7 @@ name: switcheroo-control description: D-Bus service to check the availability of dual-GPU version: "3.0" -revision: 2 +revision: 3 url: https://gitlab.freedesktop.org/hadess/switcheroo-control license: GPL3-or-later maintainers: diff --git a/recipe.sh b/recipe.sh index 99b539c..b476b1d 100644 --- a/recipe.sh +++ b/recipe.sh @@ -23,6 +23,9 @@ package() { # Remove systemd directory 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 -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/switcheroo-control/COPYING } diff --git a/source-files/switcheroo-control.esv b/source-files/switcheroo-control.esv new file mode 100644 index 0000000..bf8d91d --- /dev/null +++ b/source-files/switcheroo-control.esv @@ -0,0 +1,4 @@ +name: switcheroo-control +description: start the switcheroo-control daemon +type: background +start_cmd: /usr/libexec/switcheroo-control