]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/cfgroot/general-functions.pl
DNS: Show DNSSEC status on index page if deavtivated
[people/pmueller/ipfire-2.x.git] / config / cfgroot / general-functions.pl
index 188bb7f8b6455209fe3c90a33816429807305681..5e5417d0971f4ec19f93a0d724611681e4831042 100644 (file)
@@ -1128,4 +1128,16 @@ sub get_red_interface() {
        return $interface;
 }
 
+sub dnssec_status() {
+       my $path = "${General::swroot}/red/dnssec-status";
+
+       open(STATUS, $path) or return 0;
+       my $status = <STATUS>;
+       close(STATUS);
+
+       chomp($status);
+
+       return $status;
+}
+
 1;