aboutsummaryrefslogtreecommitdiff
path: root/net/ifconfig.sh.Linux.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/ifconfig.sh.Linux.in')
-rw-r--r--net/ifconfig.sh.Linux.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in
index 80a0b987..9eaa7c56 100644
--- a/net/ifconfig.sh.Linux.in
+++ b/net/ifconfig.sh.Linux.in
@@ -19,7 +19,7 @@ _down()
_exists()
{
- grep -Eq "^[[:space:]]*${IFACE}:" /proc/net/dev
+ [ -e /sys/class/net/"$IFACE" ]
}
_ifindex()