querfunk
/
ffka-querfunk
Archived
2
0
Fork 0

check if ffka-querfunk is online before installing

master
neingeist 9 years ago
parent 7310c08116
commit c0f229325c

@ -1,6 +1,11 @@
#!/bin/sh #!/bin/sh
ffka_querfunk_mgmt=2a03:2260:a:a:ea94:f6ff:fea1:98f6 ffka_querfunk_mgmt=2a03:2260:a:a:ea94:f6ff:fea1:98f6
if ! ping6 -c1 $ffka_querfunk_mgmt &>/dev/null; then
echo 'ffka-querfunk is offline'
exit 1
fi
# stream setup # stream setup
ssh root@$ffka_querfunk_mgmt "sh -c 'opkg update && opkg install socat'" ssh root@$ffka_querfunk_mgmt "sh -c 'opkg update && opkg install socat'"
scp assets/zz_custom root@[$ffka_querfunk_mgmt]:/etc/init.d/ scp assets/zz_custom root@[$ffka_querfunk_mgmt]:/etc/init.d/