Make error message about bootup action clearer

This commit is contained in:
Jamie Cameron
2024-01-16 20:48:16 -08:00
parent e9f382272a
commit 3a5dcc4723
2 changed files with 3 additions and 2 deletions

View File

@ -156,7 +156,7 @@ desc_args--match-set=$2 is contained in IP-set $1
desc_src=source
desc_dest=destination
redhat_einstalled=No <tt>iptables(6)</tt> bootup action was found, indicating that the IPtables package is not installed on your system
redhat_einstalled2=No <tt>$1</tt> bootup action was found, indicating that the IPtables package is not installed on your system
redhat_eoutput=An error occured getting IPtables status from the command $1. This probably indicates that your system has been configured to use IPchains instead of IPtables.
gentoo_escript=The Gentoo IPtables startup script $1 was not found on your system.

View File

@ -9,7 +9,8 @@ $init_script = "$init::config{'init_dir'}/ip${ipvx}tables";
sub check_iptables
{
&foreign_require("init");
&init::action_status("ip${ipvx}tables") > 0 || return $text{'redhat_einstalled'};
&init::action_status("ip${ipvx}tables") > 0 ||
return &text('redhat_einstalled2', "ip${ipvx}tables");
return undef if ($gconfig{'os_type'} eq 'trustix-linux');
return undef if ($gconfig{'os_type'} eq 'redhat-linux' &&
$gconfig{'os_version'} > 10);