diff options
author | tleydxdy | 2022-05-24 09:32:57 -0400 |
---|---|---|
committer | tleydxdy | 2022-05-24 09:33:19 -0400 |
commit | b465ac8cb8c86dc0be07516e5225219324a11108 (patch) | |
tree | 4429707e0fa8a966df7c76b13c81f64cb923f8be | |
parent | ffbf305faee53483fcfa6b74821b04cdc10b4c29 (diff) | |
download | aur-b465ac8cb8c86dc0be07516e5225219324a11108.tar.gz |
add warning about renamed service
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | system76-power.install | 19 |
3 files changed, 13 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = system76-power pkgdesc = System76 Power Management pkgver = 1.1.21 - pkgrel = 1 + pkgrel = 2 url = https://github.com/pop-os/system76-power install = system76-power.install arch = any @@ -2,7 +2,7 @@ pkgname=system76-power pkgver=1.1.21 -pkgrel=1 +pkgrel=2 pkgdesc="System76 Power Management" arch=('any') url="https://github.com/pop-os/system76-power" diff --git a/system76-power.install b/system76-power.install index 9a5dbaffed27..f642287d0380 100644 --- a/system76-power.install +++ b/system76-power.install @@ -1,4 +1,4 @@ -_services="system76-power.service" +_services="com.system76.PowerDaemon.service" _stop_services() { for service in $_services; do @@ -30,21 +30,24 @@ cat << EOF The System76 Power package provides the following system services: - system76-power.service System76 power support + com.system76.PowerDaemon.service System76 power support And the following application - system76-power System76 power CLI interface - - If you are using a NVIDIA graphics card, you may need to add additional - X11 config to make the GPU switching work, see below: - - https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Use_NVIDIA_graphics_only + system76-power System76 power CLI interface EOF } pre_upgrade() { + if /usr/bin/systemctl -q is-enabled system76-power.service >/dev/null 2>&1; then + /usr/bin/systemctl stop system76-power.service >/dev/null 2>&1 + /usr/bin/systemctl disable system76-power.service >/dev/null 2>&1 + cat << EOF + The systemd unit have been renamed to com.system76.PowerDaemon.service, you + need to re-enable the service using the new name. +EOF + fi _stop_services } |