This commit is contained in:
parent
1afb5c3952
commit
dcd4791c88
1 changed files with 11 additions and 19 deletions
|
@ -1,23 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
while true ; do
|
||||
nc -lp 3849 | gpg -d --assert-signer B0F943A1A93444BFA8C030CCC36DCC0986B8748F > BaseBand-Broadway.jar.tmp 2>> baseband_receiver.log \
|
||||
|| continue
|
||||
function receive() {
|
||||
while true ; do
|
||||
nc -lp "$1" | gpg -d --assert-signer B0F943A1A93444BFA8C030CCC36DCC0986B8748F | head -cn20000000 > "BaseBand-$2.jar.tmp" 2>> baseband_receiver.log \
|
||||
|| continue
|
||||
|
||||
mv BaseBand-Broadway.jar.tmp BaseBand-Broadway.jar
|
||||
sleep 5
|
||||
done & disown
|
||||
while true ; do
|
||||
nc -lp 3848 | gpg -d --assert-signer B0F943A1A93444BFA8C030CCC36DCC0986B8748F > BaseBand-Loader.jar.tmp 2> baseband_receiver.log \
|
||||
|| continue
|
||||
mv "BaseBand-$2.jar.tmp" "BaseBand-$2.jar"
|
||||
sleep 5
|
||||
done & disown
|
||||
}
|
||||
|
||||
mv BaseBand-Loader.jar.tmp BaseBand-Loader.jar
|
||||
sleep 5
|
||||
done & disown
|
||||
while true ; do
|
||||
nc -lp 3847 | gpg -d --assert-signer B0F943A1A93444BFA8C030CCC36DCC0986B8748F > BaseBand-Server.jar.tmp 2> baseband_receiver.log \
|
||||
|| continue
|
||||
|
||||
mv BaseBand-Server.jar.tmp BaseBand-Server.jar
|
||||
sleep 5
|
||||
done & disown
|
||||
receive 3849 Broadway
|
||||
receive 3848 Loader
|
||||
receive 3847 Server
|
Loading…
Add table
Reference in a new issue