including files from actual basedir

this supports arbitrary symlinking of the scripts and
retrives the actual dirname where the files are laying.
This commit is contained in:
anthraxx 2015-02-06 23:48:47 +01:00
commit 39c2c4c19e
3 changed files with 5 additions and 4 deletions

2
lock
View file

@ -1,5 +1,5 @@
#!/bin/sh
source shared
. $(dirname $(readlink "$0"))/shared
echo "Initializing Space Systems..."
echo "22" > /sys/class/gpio/unexport