aboutsummaryrefslogtreecommitdiff
path: root/net/iproute2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/iproute2.sh')
-rw-r--r--net/iproute2.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 09912bf4..e06152f8 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -20,7 +20,7 @@ _down()
_exists()
{
- grep -Eq "^[[:space:]]*${IFACE}:" /proc/net/dev
+ [ -e /sys/class/net/"$IFACE" ]
}
_ifindex()