blob: bf76ef30112763f20a1558759d3038357a6344b3 (
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
|
#!/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"
if [[ ${action} == "up" ]]; then
. /lib/rcscripts/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_check_extensions "${interface}" ; then
essidnet_pre_start "${interface}" 1>/dev/null
fi
fi
system_dns_extra "${interface}" "${statedir}/${interface}/resolv.conf"
fi
. /lib/rcscripts/net.modules.d/helpers.d/dhcp-state
# vim:ts=4
|