summarylogtreecommitdiffstats
path: root/bing-wallpaper-autostart.sh
blob: e1ea281511f69767efb85b7dda923788f705a368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# try 3 times only
i=1
while [ $i -le 3 ]; do
	if curl --connect-timeout 2 -s www.bing.com > /dev/null ; then
		break
	fi

	seconds=$((15 * $i))
	sleep $seconds

	let i=i+1
done

# starting the work even without network availability
cd /usr/lib/bing-wallpaper
./bing_wallpaper.sh