Upgraded repo with actual wait-for-internet commands

This commit is contained in:
N3rdP1um23
2021-02-05 10:10:54 -05:00
parent d1dc6e5858
commit 7c4683c59b
8 changed files with 18 additions and 70 deletions
-27
View File
@@ -1,27 +0,0 @@
#!/usr/bin/with-contenv bash
# Determine if setup is needed
if [ ! -f /usr/local/lib/python***/dist-packages/sshuttle ] && \
[ -f /usr/bin/apt ]; then
## Ubuntu
apt-get update
apt-get install --no-install-recommends -y \
iptables \
openssh-client \
python3 \
python3-pip
pip3 install sshuttle
fi
if [ ! -f /usr/lib/python***/site-packages/sshuttle ] && \
[ -f /sbin/apk ]; then
# Alpine
apk add --no-cache \
iptables \
openssh \
py3-pip \
python3
pip3 install sshuttle
fi
chown -R root:root /root
chmod -R 600 /root/.ssh
@@ -0,0 +1,7 @@
## !/usr/bin/with-contenv bash
# Loop until an active internet connection is established
until $(curl --max-time 60 -s -o /dev/null https://www.linuxserver.io/); do
# Sleep to allow cooldown
sleep 10
done
-3
View File
@@ -1,3 +0,0 @@
#!/usr/bin/with-contenv bash
sshuttle --dns --remote root@${HOST}:${PORT} 0/0 -x 172.17.0.0/16