Merge pull request #480 from linuxserver/universal-wait-for-internet-s6v3

switch to hybrid (universal-wait-for-internet)
This commit is contained in:
aptalca 2022-09-03 14:26:03 -04:00 committed by GitHub
commit 784333a2fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 39 additions and 0 deletions

View File

@ -1,5 +1,20 @@
#!/usr/bin/with-contenv bash
echo '
***********************************************************
***********************************************************
**** ****
**** ****
**** This mod "linuxserver/mods:wait-for-internet" ****
**** ****
**** ****
**** has been deprecated and will not receive updates ****
**** ****
**** ****
**** ****
***********************************************************
***********************************************************'
# 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

View File

@ -0,0 +1,22 @@
#!/usr/bin/with-contenv bash
echo '
***********************************************************
***********************************************************
**** ****
**** ****
**** This mod "linuxserver/mods:wait-for-internet" ****
**** ****
**** ****
**** has been deprecated and will not receive updates ****
**** ****
**** ****
**** ****
***********************************************************
***********************************************************'
# 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

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-universal-wait-for-internet/run