2
0
Fork 0
This repository has been archived on 2019-12-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ffka-querfunk/install-stream

29 lines
685 B
Text
Raw Normal View History

2015-09-25 02:24:59 +02:00
#!/bin/sh
2015-11-15 05:25:24 +01:00
ffka_querfunk_mgmt=2a03:2260:a:b:ea94:f6ff:fea1:98f6
2015-09-25 02:24:59 +02:00
if ! ping6 -c1 $ffka_querfunk_mgmt &>/dev/null; then
echo 'ffka-querfunk is offline'
exit 1
fi
2015-09-25 04:33:53 +02:00
# stream setup
2015-09-25 02:24:59 +02:00
scp assets/zz_custom root@[$ffka_querfunk_mgmt]:/etc/init.d/
ssh root@$ffka_querfunk_mgmt "/etc/init.d/zz_custom enable"
2015-09-25 04:33:53 +02:00
# http://querfunk.ffka
echo FIXME scp assets/index.html root@[$ffka_querfunk_mgmt]:/lib/gluon/status-page/www/
2015-09-25 04:33:53 +02:00
echo "Tell ffka-querfunk to reboot"
2015-09-25 02:24:59 +02:00
ssh root@$ffka_querfunk_mgmt "reboot"
sleep 3
2015-09-25 02:24:59 +02:00
echo -n "Waiting for ffka-querfunk to come online after rebooting"
2015-11-15 05:25:24 +01:00
ffka_querfunk=2a03:2260:a:b::1:66
while ! ping6 -c1 $ffka_querfunk &>/dev/null; do
echo -n "."
sleep 1
done
echo ok