diff options
Diffstat (limited to 'system/nvidia-driver')
-rw-r--r-- | system/nvidia-driver/doinst.sh | 5 | ||||
-rw-r--r-- | system/nvidia-driver/nvidia-switch | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/system/nvidia-driver/doinst.sh b/system/nvidia-driver/doinst.sh index 13f101c5be..8ee62f049e 100644 --- a/system/nvidia-driver/doinst.sh +++ b/system/nvidia-driver/doinst.sh @@ -1,5 +1,6 @@ if [ -x /usr/bin/update-desktop-database ]; then - ./usr/bin/update-desktop-database -q usr/share/applications + /usr/bin/update-desktop-database -q usr/share/applications fi -/usr/sbin/nvidia-switch --install +./usr/sbin/nvidia-switch --install + diff --git a/system/nvidia-driver/nvidia-switch b/system/nvidia-driver/nvidia-switch index 640bfd4b23..a657f5a52c 100644 --- a/system/nvidia-driver/nvidia-switch +++ b/system/nvidia-driver/nvidia-switch @@ -30,7 +30,7 @@ set -e -ROOT="/" +ROOT="${ROOT:-/}" CWD=$(pwd) LIBSUFFIX="LIBDIRSUFFIX" # This will be replaced in the build script COMPAT32="LIB32FLAG" # This will be replaced in the build script (yes | no) |