From d78342d29f91a11e7b1783f96417864211de4c29 Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 28 Apr 2016 21:28:41 +0200 Subject: [PATCH] add script to set gluon node info (gps etc.) --- install-set-gluon-node-info | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 install-set-gluon-node-info diff --git a/install-set-gluon-node-info b/install-set-gluon-node-info new file mode 100755 index 0000000..67c3642 --- /dev/null +++ b/install-set-gluon-node-info @@ -0,0 +1,14 @@ +#!/bin/sh +ffka_querfunk_mgmt=2a03:2260:a:b:ea94:f6ff:fea1:98f6 + +if ! ping6 -c1 $ffka_querfunk_mgmt &>/dev/null; then + echo 'ffka-querfunk is offline' + exit 1 +fi + +ssh root@$ffka_querfunk_mgmt "uci set gluon-node-info.@location[0].latitude=49.006679 +uci set gluon-node-info.@location[0].longitude=8.4073580 +uci set gluon-node-info.@location[0].share_location=1 +uci get gluon-node-info.@owner[0] || uci add gluon-node-info owner +uci set gluon-node-info.@owner[0].contact=neingeist@querfunk.de +uci commit gluon-node-info"