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

(-)a/net.Linux/br2684ctl.sh (-4 / +11 lines)
Lines 22-30 Link Here
22
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23
# SUCH DAMAGE.
23
# SUCH DAMAGE.
24
24
25
_br2684ctl() {
26
	if [ -x /usr/sbin/br2684ctl ]; then
27
		echo /usr/sbin/br2684ctl
28
	else
29
		echo /sbin/br2684ctl
30
	fi
31
}
32
25
br2684ctl_depend() {
33
br2684ctl_depend() {
26
	before ppp
34
	before ppp
27
	program start /sbin/br2684ctl
35
	program start $(_br2684ctl)
28
}
36
}
29
37
30
_config_vars="$_config_vars bridge bridge_add brctl"
38
_config_vars="$_config_vars bridge bridge_add brctl"
Lines 52-58 br2684ctl_pre_start() { Link Here
52
	esac
60
	esac
53
	
61
	
54
	einfo "Starting RFC 2684 Bridge control on ${IFACE}"
62
	einfo "Starting RFC 2684 Bridge control on ${IFACE}"
55
	start-stop-daemon --start --exec /sbin/br2684ctl --background \
63
	start-stop-daemon --start --exec $(_br2684ctl) --background \
56
		--make-pidfile --pidfile "/var/run/br2684ctl-${IFACE}.pid" \
64
		--make-pidfile --pidfile "/var/run/br2684ctl-${IFACE}.pid" \
57
		-- -c "${IFACE#nas*}" ${opts}
65
		-- -c "${IFACE#nas*}" ${opts}
58
	eend $?
66
	eend $?
Lines 63-70 br2684ctl_post_stop() { Link Here
63
	[ -e "${pidfile}" ] || return 0
71
	[ -e "${pidfile}" ] || return 0
64
	
72
	
65
	einfo "Stopping RFC 2684 Bridge control on ${IFACE}"
73
	einfo "Stopping RFC 2684 Bridge control on ${IFACE}"
66
	start-stop-daemon --stop --quiet \
74
	start-stop-daemon --stop --quiet --pidfile "${pidfile}"
67
		--exec /sbin/br2684ctl --pidfile "${pidfile}"
68
	eend $?
75
	eend $?
69
}
76
}
70
77

Return to bug 204186