]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/network
Remove remains of the "real" device type
[people/stevee/network.git] / src / network
index fda05a23c8525ac01b479a148882fe6b75726f1f..81bb3bb540b69354ac6d19893f084afee26e8575 100644 (file)
@@ -239,8 +239,8 @@ function cli_device_discover() {
        local device=${1}
        shift
 
        local device=${1}
        shift
 
-       local device_type=$(device_get_type ${device})
-       if [ "${device_type}" != "real" ]; then
+       # This can only be executed for ethernet (or compatible) devices
+       if ! device_is_ethernet_compatible "${device}"; then
                return ${EXIT_OK}
        fi
 
                return ${EXIT_OK}
        fi