From 00d1d2c9876bbed6a248bde842cae8641ffaca53 Mon Sep 17 00:00:00 2001 From: Tim Niemeyer Date: Sat, 30 Mar 2013 01:22:37 +0100 Subject: [PATCH] add an ipv6 host to fastdstart to detect connectivity Signed-off-by: Tim Niemeyer --- bsp/default/root_file_system/etc/fastdstart.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bsp/default/root_file_system/etc/fastdstart.sh b/bsp/default/root_file_system/etc/fastdstart.sh index cefde4f..3b641a3 100755 --- a/bsp/default/root_file_system/etc/fastdstart.sh +++ b/bsp/default/root_file_system/etc/fastdstart.sh @@ -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)