From 80a2f25b028c28c14ed800c5c63734fa605bbfba Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Fri, 16 May 2008 23:52:02 +0200 Subject: Added support for /etc/live-helper. * lh_config system-wide configuration file, like an implicit specification of '--conffile=/etc/live-helper' to each lh_config call. --- helpers/lh_config | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'helpers') diff --git a/helpers/lh_config b/helpers/lh_config index 85d313430..6fa2ad6f7 100755 --- a/helpers/lh_config +++ b/helpers/lh_config @@ -18,6 +18,7 @@ do done # Setting static variables +SYSTEM_LH_CONFFILE="/etc/live-helper" DESCRIPTION="create configuration for live-helper(7)" HELP="FIXME" USAGE="${PROGRAM} [--apt apt|aptitude]\n\ @@ -660,6 +661,12 @@ Local_arguments "${@}" # Setting defaults Set_defaults +if [ -f "${SYSTEM_LH_CONFFILE}" ] +then + Echo_verbose "Using system defaults from ${SYSTEM_LH_CONFFILE}" + Read_conffile "${SYSTEM_LH_CONFFILE}" +fi + if [ -n "${LH_CONFFILE}" ] then Read_conffile "${LH_CONFFILE}" -- cgit v1.2.3