<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi!<div><br></div><div>Ich habe mir gerade die Prozessliste eines 1.1-Knotens angeschaut. Gibt es keine intelligentere Methode als 8x folgendes Script laufen zu haben?</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">root@kruemel:~# cat /lib/freifunk/mesh-vpn/upload_key_to_server</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#!/bin/sh</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">UPLOAD_URL=$1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">KEY=`/etc/init.d/fastd show_key mesh_vpn`</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">WGETC=`which wget`</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">VERSION=$(cat /etc/freifunk_version)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">MAC=$(uci get freifunk.@node[0].nodeid)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">while [ 1 = 1 ]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">do</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">        $WGETC "$UPLOAD_URL/upload_key?nodeid=${MAC}&_method=post&key=${KEY}&fw_version=${VERSION}" -O - && break</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span class="Apple-tab-span" style="white-space:pre"> </span>sleep 30</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">done</div></div><div><br></div><div><br></div><div>Welche der gepushten Informationen ändert sich denn überhaupt? Für mich sieht das erstmal so aus, als würden die sich erst nach einem Neustart oder zumindest „uci commit" ändern.</div><div><br></div><div>Oder wird das als eine Art „ping“ benutzt? Aber dafür haben wir doch ein collectd-plugin, oder?</div><div><br></div><div>Wäre doch schön, wenn wir die gut 130 Bytes/s einsparen könnten.</div><div><br></div><div>  Gruß vom g3ntleman</div></body></html>