add an ipv6 host to fastdstart to detect connectivity

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Tim Niemeyer 2013-03-30 01:22:37 +01:00
parent 118d7d8236
commit 00d1d2c987
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ test_internet_host1="mastersword.de"
test_internet_host2="109.163.229.254"
#Only do something with fastd when the router has internet connection
if ping -w5 -c3 "$test_internet_host1" &>/dev/null || ping -w5 -c3 "$test_internet_host2" &>/dev/null; then
if ping -w5 -c3 "$test_internet_host1" &>/dev/null ||
ping -w5 -c3 "$test_internet_host2" &>/dev/null ||
ping6 -w5 -c3 heise.de &>/dev/null; then
if [ "$SERVER" == "no" ]; then
hostname=$(cat /proc/sys/kernel/hostname)