From 4981916fd955d0fc7a9008352d3a4bec1a498cdd Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 25 Apr 2024 19:32:52 +0200 Subject: [PATCH] general-functions.pl: Always load the main settings Signed-off-by: Michael Tremer --- config/cfgroot/general-functions.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-functions.pl index bbd0f9839..a86bade53 100644 --- a/config/cfgroot/general-functions.pl +++ b/config/cfgroot/general-functions.pl @@ -25,6 +25,10 @@ $General::noipprefix = 'noipg-'; require "${General::swroot}/network-functions.pl"; +# Load the main settings file +our %mainsettings = (); +&readhash("${General::swroot}/main/settings", \%mainsettings); + # This function executes a shell command without forking a shell or do any other # Perl-voodoo before it. It deprecates the "system" command and is the only way # to call shell commands. -- 2.39.5