Signed-off-by: Martin Schwenke <martin@meltin.net>
:
}
+hack_network_map_hooks=""
+
# Uses: CLUSTER, NAME, NETWORKS, FIRSTIP, ip_offset
make_network_map ()
{
local ip="${net%.*}.${IPNUM}"
local mask="255.255.255.0"
+
+ # This can be used to override the variables in the echo
+ # statement below. The hook can use any other variables
+ # available in this function.
+ run_hooks hack_network_map_hooks
+
echo "${netname} ${dev} ${ip} ${mask} ${mac} ${opts}"
count=$(($count + 1))
done >"$network_map"