The format of a netif file.

1. Activate script.

The activate script is begun with a line:
>>>activate>>>
and ended with a line:
>>>end>>>

The material between these lines will be copied into
/etc/sysconfig/network-scripts/ifup-{interface name}.

This script is sourced at boot time with the single argument `boot'.

2. Deactivate script.

The deactivate script is begun with a line:
>>>deactivate>>>
and ended with a line:
>>>end>>>

The material between these lines will be copied into
/etc/sysconfig/network-scripts/ifdown-{interface name}.

This script is sourced at boot time with the single argument `boot'.

3. variables

The variables section is begun with a line:
>>>variables>>>
and ended with a line:
>>>end>>>

Each variable begins with a line:
{Name}^{Var}^{type}^{depend}

Name - The name of the variable (Ex: `IP Address')

Var - A shell variable name (Ex: `IPADDR')

type - The type of widget used to get information for this variable. Either
       `entry' or `checkbutton'. Checkbutton variables will be set to `on'
       or `off'.

depend - The index of a variable that can be used to determine the default
         contents of this one. For example, if the IP address is the second
         field (index 1), and the network address is to be determined from
         the IP address, put a 1 in this field. A -1 in this field means
         that there is no default.

Variables with a non -1 dependancy are followed by a tcl script that will
be sourced when the dependancy variable is entered.

There are five variables that will be in existance when the script is
sourced: class, a, b, c, and d. Class is the class of the network, `a',
`b', etc. a, b, c, and d are the contents of the four bytes of the IP
address.

The script should put the new variable value in $result.

The script is ended with a line:
<<done<<

Example variable entry:

Broadcast^BROADCAST^entry^0
if {[string compare $class "a"] == 0} {
        set result "$a.255.255.255"
} elseif {[string compare $class "b"] == 0} {
        set result "$a.$b.255.255"
} elseif {[string compare $class "c"] == 0} {
        set result "$a.$b.$c.255"
} else {
        set result "error"
}
<<done<<
