diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2018-07-28 01:35:00 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2018-11-25 19:04:32 -0600 |
commit | 7dd411ec718e48c43f32c8c5fc40c4e6b104817f (patch) | |
tree | f85d1724b64d5ea730e3732423bc272035ae489b /rc.inet1 | |
parent | 8bbd1ebfac4271051929fa167f57e2a344aa9bc6 (diff) | |
download | slacknetsetup-7dd411ec718e48c43f32c8c5fc40c4e6b104817f.tar.xz |
Consider SLAAC IPs when determining interface up status
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |