From 1c48fcac7c0c96df4b07a7738dbaf113061ddbab Mon Sep 17 00:00:00 2001
From: Robert Martin-Legene <robert@nic.ar>
Date: Thu, 23 Aug 2018 13:51:14 -0300
Subject: [PATCH] Adding bfalog.sh to tail the logfile

---
 bin/bfalog.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100755 bin/bfalog.sh

diff --git a/bin/bfalog.sh b/bin/bfalog.sh
new file mode 100755
index 0000000..69701e1
--- /dev/null
+++ b/bin/bfalog.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+# Robert Martin-Legene <robert@nic.ar>
+
+if [ -z "${BFAHOME}" ]; then echo "\$BFAHOME not set. Did you source bfa/bin/env ?" >&2; exit 1; fi
+source ${BFAHOME}/bin/libbfa.sh || exit 1
+
+bfaconfig node
+exec tail -n 100 -F ${BFANODEDIR}/log
-- 
GitLab