]> git.ipfire.org Git - people/arne_f/network.git/blobdiff - functions.device
network: Add new check for ethernet devices.
[people/arne_f/network.git] / functions.device
index 40e8eb4415c0d0e0892aba6d90001fd18c193ad3..3bf8df5421220bc6bc06ebca6a74d68b434e0416 100644 (file)
@@ -153,6 +153,9 @@ function device_is_real() {
        device_is_virtual ${device} && \
                return ${EXIT_ERROR}
 
+       [ "$(__device_get_file ${device} type)" != "1" ] && \
+               return ${EXIT_ERROR}
+
        return ${EXIT_OK}
 }