summaryrefslogtreecommitdiffstats
path: root/src.etc/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'src.etc/init.d')
-rwxr-xr-xsrc.etc/init.d/networking4
1 files changed, 2 insertions, 2 deletions
diff --git a/src.etc/init.d/networking b/src.etc/init.d/networking
index ed55e4e..bfc50e4 100755
--- a/src.etc/init.d/networking
+++ b/src.etc/init.d/networking
@@ -7,9 +7,9 @@ start()
printf '# GENERATED FILE. DO NO EDIT.\n' >&3
printf '# Edit /etc/network/interfaces.local instead.\n\n' >&3
printf 'auto lo\niface lo inet loopback\n\n' >&3
- for iface in /sys/class/net/eth*; do
+ for iface in /sys/class/net/eth* /sys/class/net/wlan*; do
+ [ -e "${iface}" ] || continue
iface="${iface##*/}"
- [ "x${iface}" = 'xeth*' ] && continue
printf 'auto %s\niface %s inet dhcp\n\n' \
"${iface}" "${iface}" >&3
done