summaryrefslogtreecommitdiffstats
path: root/src.etc/init.d/networking
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-06 17:46:48 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-06 17:46:48 (EDT)
commit272f0bcc59623075ca26fc12941b983e2f27ab60 (patch)
tree103779d5de145a72062d65ac799b63d43891ced4 /src.etc/init.d/networking
parent34eccdbb7a69ee013e60ac2c58c1519de13ea4ef (diff)
/etc/init.d/networking: Support wlan interfaces
Diffstat (limited to 'src.etc/init.d/networking')
-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