no more querfunk.ffka
parent
e2708b729a
commit
a04629707b
@ -0,0 +1 @@
|
||||
wird nicht mehr benutzt, ffka-querfunk ist jetzt ein normalo-freifunk-router.
|
@ -1,11 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>querfunk.ffka</title>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li><a href="http://querfunk.ffka:8000/qfhi">querfunk stream</a></li>
|
||||
<li><a href="/cgi-bin/status">ffka-querfunk status page</a></li>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,19 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
|
||||
start() {
|
||||
# install socat to ram
|
||||
if [ ! -f /tmp/usr/bin/socat ]; then
|
||||
/bin/sleep 60
|
||||
opkg update
|
||||
opkg install socat -d ram
|
||||
fi
|
||||
|
||||
# start stream proxy
|
||||
/tmp/usr/bin/socat TCP-LISTEN:8000,reuseaddr,fork,su=nobody,pf=ip6 TCP:192.168.2.2:8000 &
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall socat
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
|
||||
boot() {
|
||||
echo zz_custom started | logger
|
||||
|
||||
# route to the dmz via WAN
|
||||
QFEXT=192.168.3.0/24
|
||||
QFGW=192.168.2.1
|
||||
/sbin/ip route add $QFEXT via $QFGW dev br-wan
|
||||
|
||||
# ipv6 fixed
|
||||
/sbin/ip -6 addr add 2a03:2260:a:b::1:66/64 dev br-client
|
||||
|
||||
echo zz_custom ended | logger
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
from __future__ import division, print_function
|
||||
import requests
|
||||
|
||||
|
||||
r = requests.get('http://mapsrv0.ffka.net/json/ffka/nodes.json')
|
||||
j = r.json()
|
||||
|
||||
for nodeid in j['nodes'].keys():
|
||||
nodeinfo = j['nodes'][nodeid]['nodeinfo']
|
||||
hostname = nodeinfo['hostname']
|
||||
for i, mac in enumerate(nodeinfo['network']['mesh_interfaces']):
|
||||
print('{} {}_int{}'.format(mac, hostname, i))
|
@ -1,14 +0,0 @@
|
||||
#!/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"
|
@ -1,31 +0,0 @@
|
||||
#!/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
|
||||
|
||||
|
||||
# stream setup
|
||||
for i in zz_custom stream_proxy; do
|
||||
scp assets/$i root@[$ffka_querfunk_mgmt]:/etc/init.d/
|
||||
ssh root@$ffka_querfunk_mgmt "/etc/init.d/$i enable"
|
||||
done
|
||||
echo "0 * * * * pgrep socat || /etc/init.d/stream_proxy start" | ssh root@$ffka_querfunk_mgmt crontab -
|
||||
|
||||
# http://querfunk.ffka
|
||||
echo FIXME scp assets/index.html root@[$ffka_querfunk_mgmt]:/lib/gluon/status-page/www/
|
||||
|
||||
|
||||
echo "Tell ffka-querfunk to reboot"
|
||||
ssh root@$ffka_querfunk_mgmt "reboot"
|
||||
sleep 3
|
||||
|
||||
echo -n "Waiting for ffka-querfunk to come online after rebooting"
|
||||
ffka_querfunk=2a03:2260:a:b::1:66
|
||||
while ! ping6 -c1 $ffka_querfunk &>/dev/null; do
|
||||
echo -n "."
|
||||
sleep 1
|
||||
done
|
||||
echo ok
|
@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
mplayer 'http://[2a03:2260:a:b::1:66]:8000/qfhi'
|
Reference in New Issue