summaryrefslogtreecommitdiff
path: root/system/nvidia-legacy340-driver/nvidia-switch
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2016-06-14 13:18:41 +0100
committerRobby Workman <rworkman@slackbuilds.org>2016-06-18 19:14:15 -0500
commit1f0bd114b7820aac9e05aef664a134d9ad67df18 (patch)
treebfef412ade1a42c051681b5e4f863e7630065026 /system/nvidia-legacy340-driver/nvidia-switch
parent53eab6e16d3103ff4a729e3c78cd4413d8761265 (diff)
downloadslackbuilds-1f0bd114b7820aac9e05aef664a134d9ad67df18.tar.gz
system/nvidia-legacy340-driver: Fix install with ROOT=.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'system/nvidia-legacy340-driver/nvidia-switch')
-rw-r--r--system/nvidia-legacy340-driver/nvidia-switch2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/nvidia-legacy340-driver/nvidia-switch b/system/nvidia-legacy340-driver/nvidia-switch
index bb2837565b..02698af1dd 100644
--- a/system/nvidia-legacy340-driver/nvidia-switch
+++ b/system/nvidia-legacy340-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)