aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/net-online.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.d/net-online.in b/init.d/net-online.in
index 1175f29c..484fe87d 100644
--- a/init.d/net-online.in
+++ b/init.d/net-online.in
@@ -23,6 +23,7 @@ get_interfaces()
{
local ifname iftype
for ifname in /sys/class/net/*; do
+ [ -h "${ifname}" ] && continue
read iftype < ${ifname}/type
[ "$iftype" = "1" ] && printf "%s " ${ifname##*/}
done