Menu

[r1036]: / trunk / etc / rc.subrconf  Maximize  Restore  History

Download this file

32 lines (27 with data), 550 Bytes

# Copyright © 2007 Volker Theile (votdev@gmx.de)
# All rights reserved.
#
# rc.subrconf
#	functions used by various rc scripts
#

#
# create_conf_file
#	Create configuration file for the given service.
#
create_conf_file()
{
	_file="/etc/rc.d.conf/${name}"

	if [ -n "${rcvar}" ]; then
		if checkyesno ${rcvar}; then
			if [ ! -e "${_file}" ]; then
				debug "create_conf_file: no such file (${_file})"
				return 1
			fi

			if [ ! -x ${_file} ]; then
				info "create_conf_file: cannot run ($_file)."
				return 1
			fi

			eval $_file
		fi
	fi
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.