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