Browse Source

TODO WAN / LAN behaviour <=> AUTO READ star1 channel / AUTO PIN star5 channel

pull/32/head
qo-op 4 months ago
parent
commit
21a941fb9c
  1. 9
      cron_MINUTE.sh

9
cron_MINUTE.sh

@ -29,10 +29,13 @@ 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
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" && export LAN=0 && echo "0" > /tmp/LAN
if [[ "$LAN" == "1" ]]; then
~/.zen/astrXbian/zen/tools/autoPINfriends.sh LAN &
exit 0
fi
########################################################################
### TEMP CODE (add missing packages to xbian) - TODO REMOVE after 30 mn for git pull & apply
# [[ $(which ffmpeg) == "" && "$USER" == "xbian" ]] && sudo apt-get update && sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium* python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils vlc mp3info x11-utils -y

Loading…
Cancel
Save