aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-driver/nvidia-driver.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/nvidia-driver/nvidia-driver.SlackBuild')
-rw-r--r--system/nvidia-driver/nvidia-driver.SlackBuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/nvidia-driver/nvidia-driver.SlackBuild b/system/nvidia-driver/nvidia-driver.SlackBuild
index 84e57ed92ec13..fd7352bbd0507 100644
--- a/system/nvidia-driver/nvidia-driver.SlackBuild
+++ b/system/nvidia-driver/nvidia-driver.SlackBuild
@@ -27,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nvidia-driver
-VERSION=${VERSION:-525.116.03}
+VERSION=${VERSION:-525.116.04}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -72,7 +72,7 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
fi
if [ "${PERSISTENCED:-no}" = "yes" ]; then
- if [ `getent group nvidia > /dev/null` -o `getent passwd nvidia > /dev/null` ]; then
+ if [ "`getent group nvidia > /dev/null`" -o "`getent passwd nvidia > /dev/null`" ]; then
echo "User and/or group nvidia do not exist!"
echo "Please create user and group nvidia and rerun this script."
exit 1
@@ -147,7 +147,6 @@ mv -f $PKG/usr/man/man1/nvidia-installer.1.gz $TMP/$SRCNAM
if [ "$ARCH" = "x86_64" -a "${COMPAT32}" = "yes" ]; then
COMP32="--install-compat32-libs --compat32-prefix=$PKG/usr"
- mkdir -p $PKG/usr/lib
else
if [ ! "$ARCH" = "x86_64" ]; then
COMP32=""
@@ -317,6 +316,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