mirror of
https://github.com/webmin/webmin.git
synced 2026-05-06 15:20:29 +01:00
21 lines
428 B
Perl
Executable File
21 lines
428 B
Perl
Executable File
#!/usr/bin/perl
|
|
# bootup.cgi
|
|
# Enable or disable Webmin-managed nftables rules at boot time
|
|
|
|
require './nftables-lib.pl'; ## no critic
|
|
use strict;
|
|
use warnings;
|
|
our (%in, %text);
|
|
ReadParse();
|
|
assert_acl('bootup');
|
|
foreign_check("init") || error($text{'bootup_einit'});
|
|
|
|
if ($in{'boot'}) {
|
|
create_nftables_init();
|
|
}
|
|
else {
|
|
disable_nftables_init();
|
|
}
|
|
webmin_log($in{'boot'} ? "bootup" : "bootdown");
|
|
redirect("index.cgi");
|