diff options
author | Georg | 2021-10-08 02:07:13 +0200 |
---|---|---|
committer | Georg | 2021-10-08 02:07:13 +0200 |
commit | f0317340170ecb313080c57f7ced473ec104050c (patch) | |
tree | 5a627272712a2fc63ea33276ec5feb84d7d2a647 /scripts/sh/multi.sh | |
parent | c885a5ef8ae8ebccbbb9522c0eed08b64ec976c5 (diff) | |
download | system-f0317340170ecb313080c57f7ced473ec104050c.tar.gz system-f0317340170ecb313080c57f7ced473ec104050c.tar.bz2 system-f0317340170ecb313080c57f7ced473ec104050c.zip |
NetBSD Tor update script + shell multiplexer
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'scripts/sh/multi.sh')
-rwxr-xr-x | scripts/sh/multi.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/sh/multi.sh b/scripts/sh/multi.sh new file mode 100755 index 0000000..a42b85d --- /dev/null +++ b/scripts/sh/multi.sh @@ -0,0 +1,8 @@ +#!/bin/sh +#Simple wrapper for shmux +#https://github.com/shmux/shmux + +HOSTS=`grep -w Host .ssh/config | sed -e 's/Host / /' - | sed -e 's/#.*//' - | tr -d '\n'` +PAYLOAD="curl -s 202.61.255.170:9090/scripts/$1 | sh -" + +/usr/local/bin/shmux -C 5s -a lnregex -o /tmp/multi -r ssh -S all -T 10 -m -v -p -c "$PAYLOAD" $HOSTS |