#!/bin/sh STATE=`nmcli networking connectivity` if [ $STATE = 'full' ] then muchsync iapetus.local exit 0 fi echo "No internet connection" exit 0