/[baselayout]/trunk/net-scripts/net.modules.d/helpers.d/dhcp-state
Gentoo

Contents of /trunk/net-scripts/net.modules.d/helpers.d/dhcp-state

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1753 - (show annotations) (download)
Fri Dec 9 15:08:06 2005 UTC (8 years, 8 months ago) by uberlord
File size: 768 byte(s)
Remove nasty undocumented backgrounding as we now support
ifplugd, netplug and wpa_supplicant-0.4.x which do much better jobs.
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 . "${svclib}/sh/rc-services.sh"
8 . "${svclib}/net.modules.d/helpers.d/functions"
9 conf=$(add_suffix "/etc/conf.d/net")
10 [[ -e ${conf} ]] && source "${conf}"
11
12 service="net.${interface}"
13
14 if [[ ${action} != "up" ]]; then
15 service_started "${service}" && mark_service_inactive "${service}"
16 remove_state "${interface}" false
17 else
18 ! service_stopping "${service}" && mark_service_started "${service}"
19 fi
20
21 if [[ ${RC_AUTO_INTERFACE} == "yes" ]]; then
22 best_interface=$( select_best_interface )
23 apply_state "${best_interface}"
24 elif [[ ${action} == "up" ]]; then
25 apply_state "${interface}"
26 fi
27
28 # vim:ts=4

  ViewVC Help
Powered by ViewVC 1.1.20