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.
29 lines
685 B
Plaintext
29 lines
685 B
Plaintext
9 years ago
|
#!/bin/sh
|
||
9 years ago
|
ffka_querfunk_mgmt=2a03:2260:a:b:ea94:f6ff:fea1:98f6
|
||
9 years ago
|
|
||
9 years ago
|
if ! ping6 -c1 $ffka_querfunk_mgmt &>/dev/null; then
|
||
|
echo 'ffka-querfunk is offline'
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
9 years ago
|
|
||
9 years ago
|
# stream setup
|
||
9 years ago
|
scp assets/zz_custom root@[$ffka_querfunk_mgmt]:/etc/init.d/
|
||
|
ssh root@$ffka_querfunk_mgmt "/etc/init.d/zz_custom enable"
|
||
|
|
||
9 years ago
|
# http://querfunk.ffka
|
||
9 years ago
|
echo FIXME scp assets/index.html root@[$ffka_querfunk_mgmt]:/lib/gluon/status-page/www/
|
||
9 years ago
|
|
||
|
|
||
9 years ago
|
echo "Tell ffka-querfunk to reboot"
|
||
9 years ago
|
ssh root@$ffka_querfunk_mgmt "reboot"
|
||
9 years ago
|
sleep 3
|
||
9 years ago
|
|
||
9 years ago
|
echo -n "Waiting for ffka-querfunk to come online after rebooting"
|
||
9 years ago
|
ffka_querfunk=2a03:2260:a:b::1:66
|
||
9 years ago
|
while ! ping6 -c1 $ffka_querfunk &>/dev/null; do
|
||
|
echo -n "."
|
||
|
sleep 1
|
||
|
done
|
||
9 years ago
|
echo ok
|