From: Michael Tremer Date: Sat, 31 Jul 2010 10:52:29 +0000 (+0200) Subject: network: Add new check for ethernet devices. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4624e8815e1ea9cd72c662bb59803a63363f6db1;p=ipfire-3.x.git network: Add new check for ethernet devices. --- diff --git a/pkgs/core/network/src/functions.device b/pkgs/core/network/src/functions.device index 40e8eb441..3bf8df542 100644 --- a/pkgs/core/network/src/functions.device +++ b/pkgs/core/network/src/functions.device @@ -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} }