fix the stream on http://querfunk.ffka:8000/qfhi
This commit is contained in:
parent
6aab02cfc1
commit
d2f8592dae
2 changed files with 11 additions and 6 deletions
|
@ -4,7 +4,6 @@ START=99
|
|||
|
||||
boot() {
|
||||
echo zz_custom started | logger
|
||||
/bin/sleep 10
|
||||
|
||||
# route to the dmz via WAN
|
||||
QFEXT=192.168.3.0/24
|
||||
|
@ -14,8 +13,13 @@ boot() {
|
|||
# ipv6 fixed
|
||||
/sbin/ip -6 addr add 2a03:2260:a:b::1:66/64 dev br-client
|
||||
|
||||
# install socat to ram
|
||||
/bin/sleep 30
|
||||
opkg update
|
||||
opkg install socat -d ram
|
||||
|
||||
# start stream proxy
|
||||
/usr/bin/socat TCP-LISTEN:8000,reuseaddr,fork,su=nobody,pf=ip6 TCP:192.168.3.4:8000 &
|
||||
/tmp//usr/bin/socat TCP-LISTEN:8000,reuseaddr,fork,su=nobody,pf=ip6 TCP:192.168.3.4:8000 &
|
||||
|
||||
echo zz_custom ended | logger
|
||||
}
|
||||
|
|
|
@ -6,22 +6,23 @@ if ! ping6 -c1 $ffka_querfunk_mgmt &>/dev/null; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# stream setup
|
||||
ssh root@$ffka_querfunk_mgmt "sh -c 'opkg update && opkg install socat'"
|
||||
scp assets/zz_custom root@[$ffka_querfunk_mgmt]:/etc/init.d/
|
||||
ssh root@$ffka_querfunk_mgmt "/etc/init.d/zz_custom enable"
|
||||
|
||||
# http://querfunk.ffka
|
||||
scp assets/index.html root@[$ffka_querfunk_mgmt]:/lib/gluon/status-page/www/
|
||||
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"
|
||||
sleep 3
|
||||
ffka_querfunk=2a03:2260:a:b::1:66
|
||||
while ! ping6 -c1 $ffka_querfunk &>/dev/null; do
|
||||
echo -n "."
|
||||
sleep 1
|
||||
done
|
||||
echo
|
||||
echo ok
|
Reference in a new issue