diff options
Diffstat (limited to 'system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild')
-rw-r--r-- | system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild index 06978105c2986..e92ba498337c9 100644 --- a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild +++ b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nvidia-legacy390-driver VERSION=${VERSION:-390.157} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -81,13 +81,6 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then exit 0 fi -# Abort if an Nvidia driver is still installed: -if [ -x /usr/bin/nvidia-installer ]; then - echo -e "\n A previous Nvidia installation has been detected!" - echo -e " Please remove the installed driver and rerun this script.\n" - exit 1 -fi - SRCNAM=NVIDIA-Linux-$TARGET-${VERSION} # make a clean package directory tree @@ -136,6 +129,9 @@ cd $TMP/nvidia-installer-$VERSION # Install various files in $PKG instead of the root filesystem: sed -i "s|/etc/vulkan|$PKG/etc/vulkan|" files.c sed -i "s|\"/etc\"|\"$PKG/etc\"|" nvidia-installer.h + sed -i "s|/var/lib/nvidia|$PKG/var/lib/nvidia|" backup.c + sed -i "s|\"/usr/lib/\"|\"$PKG/usr/lib/\"|" files.c + sed -i "s|/usr/lib/nvidia|$PKG/usr/lib/nvidia|" misc.c chown -R root:root . find -L . \ @@ -193,7 +189,7 @@ cd $TMP/$SRCNAM # Remove a /var/lib/nvidia entry installed by nvidia-installer but # no longer needed (caused the "failed to remove some directories" # warning message): -rm -rf /var/lib/nvidia +rm -rf $PKG/var/lib/nvidia # Compile utilites from source, replacing the precompiled versions # |