summaryrefslogtreecommitdiff
blob: 2a3dacc4feb0f22a715ece6a316c1c65c00be918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# Copyright (c) 2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

# Contributed by Roy Marples (uberlord@gentoo.org)

[[ $1 == "renewal" ]] && exit 0

action="$1"
interface="$2"

. /sbin/functions.sh

if [[ ${action} == "up" ]]; then
	. "${svclib}/net.modules.d/helpers.d/module-loader"

	# Map MAC address variables to interface variables
	macnet_pre_start "${interface}" 1>/dev/null

	# Map wireless ESSID variables to interface variables
	if [[ -n ${wireless_module} ]]; then
		if wireless_exists "${interface}" ; then
			essidnet_pre_start "${interface}" 1>/dev/null
		fi
	fi

	system_dns_extra "${interface}" "${statedir}/${interface}/resolv.conf" 
fi

. "${svclib}/net.modules.d/helpers.d/dhcp-state"

# vim:ts=4