From: Michael Tremer Date: Thu, 25 Apr 2024 17:32:52 +0000 (+0200) Subject: general-functions.pl: Always load the main settings X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4981916fd955d0fc7a9008352d3a4bec1a498cdd;p=people%2Fstevee%2Fipfire-2.x.git general-functions.pl: Always load the main settings Signed-off-by: Michael Tremer --- 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.