function config_read() {
local config_file=${1}
+ assert isset config_file
if [ -e "${config_file}" ]; then
. ${config_file}
function config_write() {
local config_file=${1}
+ assert isset config_file
shift
# Check if all values to be written are sane
# Save state of DEBUG and restore it later.
local debug=${DEBUG}
- config_read ${CONFIG_FILE}
+ config_read ${NETWORK_CONFIG_FILE}
if [ -n "${debug}" ]; then
DEBUG=${debug}
}
function network_config_write() {
- config_write ${CONFIG_FILE} ${CONFIG_FILE_PARAMS}
+ config_write ${NETWORK_CONFIG_FILE} ${CONFIG_FILE_PARAMS}
}
function network_config_print() {