| … | |
… | |
| 16 | functions interface_get_mac_address |
16 | functions interface_get_mac_address |
| 17 | } |
17 | } |
| 18 | |
18 | |
| 19 | # bool macnet_start(char *iface) |
19 | # bool macnet_start(char *iface) |
| 20 | # |
20 | # |
| 21 | # All interfaces and module scripts expose modulename_get_vars |
21 | # All interfaces and module scripts can depend on the variables function |
| 22 | # which returns a space seperated list of user configuration variables |
22 | # which returns a space seperated list of user configuration variables |
| 23 | # We can override each variable here from a given MAC address of the interface |
23 | # We can override each variable here from a given MAC address of the interface |
| 24 | # Always returns 0 |
24 | # Always returns 0 |
| 25 | macnet_pre_start() { |
25 | macnet_pre_start() { |
| 26 | local iface="$1" |
26 | local iface="$1" |