Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 609682
Collapse All | Expand All

(-)net/l2tp.sh.orig (-1 / +1 lines)
Lines 32-38 Link Here
32
}
32
}
33
33
34
_is_l2tp() {
34
_is_l2tp() {
35
	eval "$(ip l2tp show session | \
35
	eval "$(ip l2tp show session 2>&1 | \
36
		awk "match(\$0, /^Session ([0-9]+) in tunnel ([0-9]+)\$/, ret) {sid=ret[1]; tid=ret[2]} 
36
		awk "match(\$0, /^Session ([0-9]+) in tunnel ([0-9]+)\$/, ret) {sid=ret[1]; tid=ret[2]} 
37
		match(\$0, /^[ ]*interface name: ${IFACE}\$/) {print \"session_id=\"sid\";tunnel_id=\"tid; exit}")"
37
		match(\$0, /^[ ]*interface name: ${IFACE}\$/) {print \"session_id=\"sid\";tunnel_id=\"tid; exit}")"
38
	test -n "$session_id"
38
	test -n "$session_id"

Return to bug 609682