From 23493b4046a7b9a0a57e5a027c3ab0e2e54f461c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> Date: Mon, 4 Jan 2010 20:38:05 +0000 Subject: [PATCH] recompute config files (sh and py) from xml --- sfa/init.d/sfa | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sfa/init.d/sfa b/sfa/init.d/sfa index 06051b04..b7e4b7a3 100755 --- a/sfa/init.d/sfa +++ b/sfa/init.d/sfa @@ -10,6 +10,13 @@ # $URL$ # +# recompute /etc/sfa/sfa_config from the xml files +# not too sure this is the right place, should probably be done by sfa-config-tty.. +xml_files="/etc/sfa/default_config.xml" +[ -f /etc/sfa/configs/site.xml ] && xml_files="$xml_files /etc/sfa/configs/site.xml" +plc-config --shell $xml_files > /etc/sfa/sfa_config +plc-config --python $xml_files > /etc/sfa/sfa_config.py + # Source config . /etc/sfa/sfa_config -- 2.47.0