check if ffka-querfunk is online before installing
This commit is contained in:
parent
7310c08116
commit
c0f229325c
1 changed files with 5 additions and 0 deletions
5
install
5
install
|
@ -1,6 +1,11 @@
|
|||
#!/bin/sh
|
||||
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
|
||||
ssh root@$ffka_querfunk_mgmt "sh -c 'opkg update && opkg install socat'"
|
||||
scp assets/zz_custom root@[$ffka_querfunk_mgmt]:/etc/init.d/
|
||||
|
|
Reference in a new issue