#!/bin/sh# try 3 times only
i=1while[$i-le3];doif curl --connect-timeout2-s www.bing.com > /dev/null ;thenbreakfi
seconds=$((15 * $i))sleep$secondslet i=i+1done# starting the work even without network availabilitycd/usr/lib/bing-wallpaper
./bing_wallpaper.sh