/[baselayout]/branches/rc-scripts-1_6/net-scripts/net.modules.d/apipa
Gentoo

Diff of /branches/rc-scripts-1_6/net-scripts/net.modules.d/apipa

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 756 Revision 757
1# Automatic Private IP Addressing (APIPA) module for net-scripts 1# Automatic Private IP Addressing (APIPA) module for net-scripts
2# Version 1.0.0 2# Version 1.0.1
3# Copyright (c) 2004 Gentoo Foundation 3# Copyright (c) 2004 Gentoo Foundation
4# Distributed under the terms of the GNU General Public License V2 4# Distributed under the terms of the GNU General Public License V2
5# Contributed by Roy Marples (uberlord@gentoo.org) 5# Contributed by Roy Marples (uberlord@gentoo.org)
6
7# bool apipa_check_installed(void)
8#
9# Returns 1 if ifenslave is installed, otherwise 0
10apipa_check_installed() {
11 [[ -x /sbin/arping || -x /usr/sbin/arping2 ]] && return 0
12 if ${1:-false}; then
13 eerror "For Automatic Private IP Addressing (APIPA) support"
14 eerror "emerge net-misc/iputils or net-analyzer/arping"
15 fi
16 return 1
17}
18 6
19# char* apipa_provides(void) 7# char* apipa_provides(void)
20# 8#
21# Returns a string to change module definition for starting up 9# Returns a string to change module definition for starting up
22apipa_provides() { 10apipa_provides() {
26# void apipa_depend(void) 14# void apipa_depend(void)
27# 15#
28# Sets up the dependancies for the module 16# Sets up the dependancies for the module
29apipa_depend() { 17apipa_depend() {
30 after dhcp 18 after dhcp
31 need interface 19}
20
21# bool apipa_check_installed(void)
22#
23# Returns 1 if ifenslave is installed, otherwise 0
24apipa_check_installed() {
25 [[ -x /sbin/arping || -x /usr/sbin/arping2 ]] && return 0
26 if ${1:-false}; then
27 eerror "For Automatic Private IP Addressing (APIPA) support"
28 eerror "emerge net-misc/iputils or net-analyzer/arping"
29 fi
30 return 1
32} 31}
33 32
34# bool apipa_check_depends(void) 33# bool apipa_check_depends(void)
35# 34#
36# Checks to see if we have the needed functions 35# Checks to see if we have the needed functions

Legend:
Removed from v.756  
changed lines
  Added in v.757

  ViewVC Help
Powered by ViewVC 1.1.20