]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
general-functions.pl: Always load the main settings
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Apr 2024 17:32:52 +0000 (19:32 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:48:31 +0000 (16:48 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/general-functions.pl

index bbd0f9839fd8dcc1dd13af395e2f6762a2356207..a86bade5344d64ac3abdaaf60f0b0038e31992c4 100644 (file)
@@ -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.