diff options
-rw-r--r-- | src/connections/ethernet | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet index 0a70f5d..651df06 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -17,10 +17,8 @@ ethernet_up() { load_profile "$1" SYSCTL_INTERFACE="${INTERFACE/.//}" - if [[ ! -e "/sys/class/net/$INTERFACE" ]]; then - if ! echo "$INTERFACE" | grep -F -q ":"; then - report_iproute "Interface $INTERFACE does not exist" - fi + if ! is_interface "$INTERFACE"; then + report_iproute "Interface $INTERFACE does not exist" fi # Disable IPv6 before bringing the interface up to prevent SLAAC |