From: Michael Tremer Date: Sat, 31 Jul 2010 10:52:29 +0000 (+0200) Subject: network: Add new check for ethernet devices. X-Git-Tag: 001~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=419b4cd00ac9c08ee687426d857ebb29c02f3e60;p=network.git network: Add new check for ethernet devices. --- diff --git a/functions.device b/functions.device index 40e8eb44..3bf8df54 100644 --- a/functions.device +++ b/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} }