mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-01-20 20:33:57 +08:00
Merge pull request #480 from linuxserver/universal-wait-for-internet-s6v3
switch to hybrid (universal-wait-for-internet)
This commit is contained in:
commit
784333a2fb
@ -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
|
||||
|
||||
22
root/etc/s6-overlay/s6-rc.d/init-mod-universal-wait-for-internet/run
Executable file
22
root/etc/s6-overlay/s6-rc.d/init-mod-universal-wait-for-internet/run
Executable 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
|
||||
@ -0,0 +1 @@
|
||||
oneshot
|
||||
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-universal-wait-for-internet/run
|
||||
Loading…
x
Reference in New Issue
Block a user