aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/networking.initd
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-02-17 20:30:32 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-02-17 20:30:46 -0600
commitec1fb486c697748fa676b6091e55c2077c894fd4 (patch)
treeaf196e260afd143930fd3c5577c51d00213f415c /main/openrc/networking.initd
parentbced29698bad2cb3d9584dedbafe137c67939a8f (diff)
downloadaports-ec1fb486c697748fa676b6091e55c2077c894fd4.tar.bz2
aports-ec1fb486c697748fa676b6091e55c2077c894fd4.tar.xz
main/openrc: support multiple interfaces on auto line (closes #531)
Diffstat (limited to 'main/openrc/networking.initd')
-rw-r--r--main/openrc/networking.initd2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/openrc/networking.initd b/main/openrc/networking.initd
index c37be9956d..895db59eed 100644
--- a/main/openrc/networking.initd
+++ b/main/openrc/networking.initd
@@ -22,7 +22,7 @@ find_ifaces() {
if [ -n "$single_iface" ]; then
echo $single_iface
else
- awk '$1 == "auto" { print $2}' $ifconf
+ awk '$1 == "auto" {for (i = 2; i <= NF; i = i + 1) printf("%s ", $i)}' $ifconf
fi
}