You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
607 B
Bash
23 lines
607 B
Bash
#!/bin/sh
|
|
ffka_querfunk_mgmt=2a03:2260:a:a:ea94:f6ff:fea1:98f6
|
|
|
|
# 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/
|
|
|
|
|
|
ssh root@$ffka_querfunk_mgmt "reboot"
|
|
|
|
echo -n "Waiting for ffka-querfunk to come online after rebooting"
|
|
sleep 3
|
|
ffka_querfunk=2a03:2260:a:a::1:66
|
|
while ! ping6 -c1 $ffka_querfunk &>/dev/null; do
|
|
echo -n "."
|
|
sleep 1
|
|
done
|
|
echo
|