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

Collapse All | Expand All

(-)pppd-wrapper (+18 lines)
Line 0 Link Here
1
#!/bin/bash
2
# Copyright (c) 2005 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
4
5
# Contributed by Roy Marples (uberlord@gentoo.org)
6
7
action="$1"
8
interface="$2"
9
10
if [[ ${action} == "up" ]]; then
11
	. /lib/rcscripts/net.modules.d/helpers.d/module-loader
12
	resolv="${statedir}/${interface}/resolv.conf"
13
	system_dns "${interface}" "${resolv}"
14
fi
15
16
. /lib/rcscripts/net.modules.d/helpers.d/dhcp-state
17
18
# vim:ts=4
0
  + *
19
  + *
(-)functions (-1 / +1 lines)
Lines 151-157 Link Here
151
		opts[i]=$( sed -n -e 's/^[ \t]*options[ \t]*\([^#]*\).*/\1#/p;' "${f}" | xargs )
151
		opts[i]=$( sed -n -e 's/^[ \t]*options[ \t]*\([^#]*\).*/\1#/p;' "${f}" | xargs )
152
		sortlist[i]=$( sed -n -e 's/^[ \t]*sortlist[ \t]*\([^#]*\).*/\1/p' "${f}" )
152
		sortlist[i]=$( sed -n -e 's/^[ \t]*sortlist[ \t]*\([^#]*\).*/\1/p' "${f}" )
153
		
153
		
154
		if [[ -z ${srvs[i]} && -z ${opts[i]} && -z ${sortlist[i]} ]]; then
154
		if [[ -z ${srvs[i]} && -z ${opts[i]} && -z ${sortlist[i]} && -z ${search[i]} ]]; then
155
			unset srvs[i]
155
			unset srvs[i]
156
			unset search[i]
156
			unset search[i]
157
			unset opts[i]
157
			unset opts[i]

Return to bug 112049