diff options
author | faaris | 2022-05-29 22:51:29 +0100 |
---|---|---|
committer | faaris | 2022-05-29 22:51:29 +0100 |
commit | 005b4b707fe6d7441794ca10456025106cb0620b (patch) | |
tree | ce8afd9bade641223a8039ab2e3bcc352ee5f28d | |
parent | 5a99ef65b894e6be93ba0c22ffe37362a5b94f9d (diff) | |
download | aur-005b4b707fe6d7441794ca10456025106cb0620b.tar.gz |
fix script
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | nvidia-modprobe.service | 9 |
3 files changed, 8 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = nvidia-modprobe-service pkgdesc = Fixes /oldroot unmount issues by unloading nvidia modules before shutdown / reboot. pkgver = 1 - pkgrel = 9 + pkgrel = 10 url = https://github.com/Fxzzi/nvidia-modprobe-service install = notes.install arch = any @@ -9,7 +9,7 @@ pkgbase = nvidia-modprobe-service depends = systemd source = nvidia-modprobe.service source = notes.install - sha256sums = 7986dbe15228e4a04ac60bbfe7efadce0407395b50a28056acfede9317cbc04d + sha256sums = 1895e120c20c841187a743916a71f9957e5da519e45f12565266fa5370b71beb sha256sums = c105f4a328491f31984d767bc15042122d4de59cca4c3d46fbd7712004053982 pkgname = nvidia-modprobe-service @@ -2,7 +2,7 @@ pkgname=nvidia-modprobe-service pkgver=1 -pkgrel=9 +pkgrel=10 pkgdesc="Fixes /oldroot unmount issues by unloading nvidia modules before shutdown / reboot." arch=('any') license=('GPL') @@ -13,7 +13,7 @@ url="https://github.com/Fxzzi/nvidia-modprobe-service" source=('nvidia-modprobe.service' 'notes.install') -sha256sums=('7986dbe15228e4a04ac60bbfe7efadce0407395b50a28056acfede9317cbc04d' +sha256sums=('1895e120c20c841187a743916a71f9957e5da519e45f12565266fa5370b71beb' 'c105f4a328491f31984d767bc15042122d4de59cca4c3d46fbd7712004053982') diff --git a/nvidia-modprobe.service b/nvidia-modprobe.service index e4ac7186933f..46feda07af18 100644 --- a/nvidia-modprobe.service +++ b/nvidia-modprobe.service @@ -1,11 +1,10 @@ [Unit] -Description=Pre-Shutdown Processes -DefaultDependencies=no -Before=shutdown.target reboot.target halt.target +Description=Ditch nvidia after multi-user.target [Service] Type=oneshot -ExecStart=/usr/bin/modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia +RemainAfterExit=true +ExecStop=/usr/bin/modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia [Install] -WantedBy=halt.target reboot.target shutdown.target +WantedBy=multi-user.target |