system/nvidia-legacy390-driver: Fix doinst.sh.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Lenard Spencer 2024-07-08 08:12:23 +07:00 committed by Willy Sudiarto Raharjo
parent 493d064c85
commit f7969d2244
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 7 additions and 1 deletions

View file

@ -2,5 +2,11 @@ if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
usr/sbin/nvidia-switch --install

View file

@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nvidia-legacy390-driver
VERSION=${VERSION:-390.157}
BUILD=${BUILD:-7}
BUILD=${BUILD:-8}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}