Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 909640 | Differences between
and this patch

Collapse All | Expand All

(-)lxc.initd.orig.8 (-2 / +3 lines)
Lines 26-32 Link Here
26
}
26
}
27
27
28
lxc_get_net_link_type() {
28
lxc_get_net_link_type() {
29
	awk 'BEGIN { FS="[ \t]*=[ \t]*"; _link=""; _type="" }
29
	# gentoo bugfix 909640, drop commented lines before awk
30
	grep -v '^#' ${CONFIGFILE} | awk 'BEGIN { FS="[ \t]*=[ \t]*"; _link=""; _type="" }
30
		$1 == "lxc.network.type" {_type=$2;}
31
		$1 == "lxc.network.type" {_type=$2;}
31
		$1 == "lxc.network.link" {_link=$2;}
32
		$1 == "lxc.network.link" {_link=$2;}
32
		match($1, /lxc\.net\.[[:digit:]]+\.type/) {_type=$2;}
33
		match($1, /lxc\.net\.[[:digit:]]+\.type/) {_type=$2;}
Lines 34-40 Link Here
34
		{if(_link != "" && _type != ""){
35
		{if(_link != "" && _type != ""){
35
			printf("%s:%s\n", _link, _type );
36
			printf("%s:%s\n", _link, _type );
36
			_link=""; _type="";
37
			_link=""; _type="";
37
		}; }' <${CONFIGFILE}
38
		}; }'
38
}
39
}
39
40
40
checkconfig() {
41
checkconfig() {

Return to bug 909640