summaryrefslogtreecommitdiff
path: root/tools/linux_packaging/noderun
diff options
context:
space:
mode:
Diffstat (limited to 'tools/linux_packaging/noderun')
-rw-r--r--tools/linux_packaging/noderun8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/linux_packaging/noderun b/tools/linux_packaging/noderun
index f5f5ed4d7f..054a5c9899 100644
--- a/tools/linux_packaging/noderun
+++ b/tools/linux_packaging/noderun
@@ -1,10 +1,8 @@
#!/bin/sh
-BASE=$1
-
-if [ x$BASE = "x" ] ; then
- exit 1
-fi
+BASE=$(readlink -f $0)
+BASE=$(dirname $BASE) # up one
+BASE=$(dirname $BASE) # up one more
if mount | grep --silent vmshare ; then
sudo mount -t vboxsf vmshare $HOME/vmshare