export LAN=1 && echo 1 > /tmp/LAN => TODO modify ACTION to LAN discovery and STAR channels AUTOSYNC

This commit is contained in:
qo-op 2021-05-14 02:45:47 +02:00
parent 665732d6fd
commit e1c592e2c0
1 changed files with 2 additions and 0 deletions

View File

@ -29,7 +29,9 @@ export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep'
########################################################################
### NO IP GATEWAY : EXIT
export LAN=1 && echo 1 > /tmp/LAN
ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` 2>&1>/dev/null && echo "GATEWAY OK" || exit 1
export LAN=0 && echo 0 > /tmp/LAN
########################################################################
### TEMP CODE (add missing packages to xbian) - TODO REMOVE after 30 mn for git pull & apply