aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy470-driver
diff options
context:
space:
mode:
authorLenard Spencer <lenardrspencer@gmail.com>2023-06-09 02:44:48 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-06-10 14:01:19 +0700
commit67e84ac421c50610bb6635b028d38a4d2ec455dd (patch)
tree5be8defa1647b4556dd64b839a6972f4235fff7c /system/nvidia-legacy470-driver
parent7eadc5b014d1bb6718b22ce2b562e61e336d8f75 (diff)
system/nvidia-legacy470-driver: Fix nvidia-persistenced.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy470-driver')
-rw-r--r--system/nvidia-legacy470-driver/nvidia-legacy470-driver.SlackBuild1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/nvidia-legacy470-driver/nvidia-legacy470-driver.SlackBuild b/system/nvidia-legacy470-driver/nvidia-legacy470-driver.SlackBuild
index e8e21e9f35a8a..f08d001b3bc2b 100644
--- a/system/nvidia-legacy470-driver/nvidia-legacy470-driver.SlackBuild
+++ b/system/nvidia-legacy470-driver/nvidia-legacy470-driver.SlackBuild
@@ -313,6 +313,7 @@ if [ "${PERSISTENCED:-no}" = "yes" ]; then
# install rc.nvidia-perstistenced:
mkdir -p $PKG/etc/rc.d $PKG/var/run/nvidia-persistenced
install -m 755 $CWD/rc.nvidia-persistenced $PKG/etc/rc.d/rc.nvidia-persistenced
+ sed -i "s|__USER__|nvidia|" $PKG/etc/rc.d/rc.nvidia-persistenced
chown nvidia:nvidia $PKG/var/run/nvidia-persistenced
fi