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

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

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

Revision 756 Revision 757
6 6
7# Fix any potential localisation problems 7# Fix any potential localisation problems
8# Note that LC_ALL trumps LC_anything_else according to locale(7) 8# Note that LC_ALL trumps LC_anything_else according to locale(7)
9vconfig() { 9vconfig() {
10 LC_ALL=C /sbin/vconfig "$@" 10 LC_ALL=C /sbin/vconfig "$@"
11}
12
13# bool vlan_check_installed(void)
14#
15# Returns 1 if vconfig is installed, otherwise 0
16vlan_check_installed() {
17 [[ -x /sbin/vconfig ]] && return 0
18 ${1:-false} && eerror "For VLAN (802.1q) support, emerge net-misc/vconfig"
19 return 1
20} 11}
21 12
22# char* vlan_provides(void) 13# char* vlan_provides(void)
23# 14#
24# Returns a string to change module definition for starting up 15# Returns a string to change module definition for starting up
30# 21#
31# Sets up the dependancies for the module 22# Sets up the dependancies for the module
32vlan_depend() { 23vlan_depend() {
33 after interface 24 after interface
34 before dhcp 25 before dhcp
35 need interface 26}
27
28# bool vlan_check_installed(void)
29#
30# Returns 1 if vconfig is installed, otherwise 0
31vlan_check_installed() {
32 [[ -x /sbin/vconfig ]] && return 0
33 ${1:-false} && eerror "For VLAN (802.1q) support, emerge net-misc/vconfig"
34 return 1
36} 35}
37 36
38# bool vlan_check_depends(void) 37# bool vlan_check_depends(void)
39# 38#
40# Checks to see if we have the needed functions 39# 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