@@ -23,7 +23,9 @@
# a mag token has been swiped.
#
-stdbuf -eL -oL /home/pi/bin/capture-mag-hid | \
- xargs -n1 -I{} bash -c " /home/pi/bin/format_debug_msg.py TOKEN_MAG '{}' | /home/pi/bin/debug_client -s " | \
+BASEDIR=/home/bus
+
+stdbuf -eL -oL $BASEDIR/bin/capture-mag-hid | \
+ xargs -n1 -I{} bash -c " $BASEDIR/bin/format_debug_msg.py TOKEN_MAG '{}' | $BASEDIR/bin/debug_client -s " | \
tee -a /tmp/mag.log
@@ -18,7 +18,7 @@
# along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
-BASEDIR=/home/pi
d=$BASEDIR/bin
# setup /dev/video1
@@ -23,7 +23,7 @@
# an rfid token has been detected
stdbuf -eL -oL $d/proxmark3 /dev/ttyACM0 -l proxmark3-lf-hid-read.lua | \