From def69ebb8d4063901d20322a0936d83660826731 Mon Sep 17 00:00:00 2001 From: Roman Katrincak Date: Sat, 28 Nov 2015 21:35:11 +0100 Subject: [PATCH] Add the alfred anouncment for supernode's --- files/alfred.sh.j2 | 66 ++++++++++++++++++++++++++++++++++++++++++++++ install.sn.yml | 6 ++++- 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 files/alfred.sh.j2 diff --git a/files/alfred.sh.j2 b/files/alfred.sh.j2 new file mode 100644 index 0000000..c479855 --- /dev/null +++ b/files/alfred.sh.j2 @@ -0,0 +1,66 @@ +#!/bin/sh + +release=$(/bin/uname -r) +nodeid=$( /bin/echo {{ sn_mesh_MAC }} | /bin/sed s/://g) +meshh_if=$(/bin/cat /sys/class/net/*/address | /bin/grep -v ^00:00:00) +tempfile=/tmp/alfred_info + +if [ -f $tempfile ] + then + /bin/rm $tempfile +fi + +/bin/cat > $tempfile <