Prep work for switching to procd olsrd-config will be called for both IPv4 and IPv6 executions.

Since we are not writing for IPv6 yet we exit early in the process.
This commit is contained in:
Conrad Lara - KG6JEI 2015-04-12 20:27:55 -07:00
parent c1f293a6f9
commit 2917bb0f4b
1 changed files with 13 additions and 0 deletions

View File

@ -42,6 +42,19 @@
use perlfunc;
#Check what config file we are building for
if ( !$ARGV[0] ) {
$UCI_CONF_FILE="olsrd";
} else {
$UCI_CONF_FILE=$ARGV[0];
}
if ( $UCI_CONF_FILE eq "olsrd6" ) {
# We only generate entries for IPv4 at moment"
exit 0;
}
@names = @hosts = @services = ();
# canonical names for this node