diff options
author | David Spencer <baildon.research@googlemail.com> | 2016-06-14 13:18:26 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2016-06-18 19:14:15 -0500 |
commit | 53eab6e16d3103ff4a729e3c78cd4413d8761265 (patch) | |
tree | d7f6370c6852a8e2ab58f09c46d3705648b72bd8 /system/nvidia-legacy304-driver | |
parent | 1ce127429ee42a856f3fa0598ca466dd447c9f81 (diff) |
system/nvidia-legacy304-driver: Fix install with ROOT=.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'system/nvidia-legacy304-driver')
-rw-r--r-- | system/nvidia-legacy304-driver/doinst.sh | 4 | ||||
-rw-r--r-- | system/nvidia-legacy304-driver/nvidia-switch | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/system/nvidia-legacy304-driver/doinst.sh b/system/nvidia-legacy304-driver/doinst.sh index 9ad2ad86009d6..8ee62f049edb4 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 242464cdd01ea..0681d52693494 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) |