Browse Source

LAN autoPIN will be done depending "stargates"

make_it
qo-op 1 year ago
parent
commit
b048634510
  1. 4
      cron_MINUTE.sh

4
cron_MINUTE.sh

@ -32,10 +32,6 @@ export YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep'
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