summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/nvidia-legacy304-driver/doinst.sh4
-rw-r--r--system/nvidia-legacy304-driver/nvidia-switch2
2 files changed, 3 insertions, 3 deletions
diff --git a/system/nvidia-legacy304-driver/doinst.sh b/system/nvidia-legacy304-driver/doinst.sh
index 9ad2ad8600..8ee62f049e 100644
--- a/system/nvidia-legacy304-driver/doinst.sh
+++ b/system/nvidia-legacy304-driver/doinst.sh
@@ -1,6 +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-legacy304-driver/nvidia-switch b/system/nvidia-legacy304-driver/nvidia-switch
index 242464cdd0..0681d52693 100644
--- a/system/nvidia-legacy304-driver/nvidia-switch
+++ b/system/nvidia-legacy304-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)