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/APKBUILD | 4 ++-- main/openrc/networking.initd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'main/openrc') diff --git a/main/openrc/APKBUILD b/main/openrc/APKBUILD index 2eabc8e49e..53f8542fb9 100644 --- a/main/openrc/APKBUILD +++ b/main/openrc/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=openrc pkgver=0.7.0 -pkgrel=0 +pkgrel=1 pkgdesc="OpenRC manages the services, startup and shutdown of a host" url="http://roy.marples.name/openrc" arch="all" @@ -68,6 +68,6 @@ b1e64885f301166df30be3e3cf5338ff hwdrivers.initd 33ca3e558c42cdd17adccbc7807298f7 keymaps.initd 098a1f16812f56fcb56eb6b6f0fa31f6 modules.initd 408e28f247c7cc71fa104c07869417f4 modloop.initd -daed2d1f6dffb0b87cc49feb53725aa2 networking.initd +af16db0d798392c7c0ed3434e4bad241 networking.initd 0a615d93aab691364c03539c3b496dcc local.start c1ec888202d868710b5749f7b217d1e3 modloop.confd" 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 } -- cgit v1.2.3