From ec1fb486c697748fa676b6091e55c2077c894fd4 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 17 Feb 2011 20:30:32 -0600 Subject: main/openrc: support multiple interfaces on auto line (closes #531) --- main/openrc/networking.initd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/openrc/networking.initd') diff --git a/main/openrc/networking.initd b/main/openrc/networking.initd index c37be9956..895db59ee 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 } -- cgit v1.2.3