#!/bin/bash

if [ $1 != "START" ]
then
	exit 0
fi

##################################################################
#add scripts here, that need to be executed when rangeconf starts#
##################################################################
VPNAC_DBCONF="/opt/phion/rangetree/configroot/data/vpnac.dbconf"
# if file does not exist or is empty
if [ ! -s ${VPNAC_DBCONF} ]
then
	/opt/phion/bin/conftool r - rebuild_db
fi

# ccid is generated in the masterlib now, used by e.g. ztd.

exit 0
