From 7dd411ec718e48c43f32c8c5fc40c4e6b104817f Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sat, 28 Jul 2018 01:35:00 +0100 Subject: Consider SLAAC IPs when determining interface up status Signed-off-by: Robby Workman --- rc.inet1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.inet1 b/rc.inet1 index acb3a2f..68d2625 100644 --- a/rc.inet1 +++ b/rc.inet1 @@ -155,7 +155,7 @@ if_up() { fi fi if [ -e /sys/class/net/${1%%:*} ]; then # interface exists - if ! /sbin/ip address show permanent scope global dev ${1} 2>/dev/null | grep -Ewq '(inet|inet6)' || \ + if ! /sbin/ip address show scope global dev ${1} 2>/dev/null | grep -Ewq '(inet|inet6)' || \ ! /sbin/ip link show dev ${1} | grep -wq "state UP" ; then # interface not up or not configured if [ -n "${HWADDR[$i]}" ]; then # Set hardware address _before_ the interface goes up: echo "/etc/rc.d/rc.inet1: /sbin/ip link set dev ${1} address ${HWADDR[$i]}" | $LOGGER -- cgit v1.2.3