From 7abf10577741845079f6f102c52fd9e570a844e2 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 1 Nov 2024 17:16:57 +0300 Subject: [PATCH] init.d: display why bad options are bad --- common/base.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/base.sh b/common/base.sh index ad8e8b7..8d466cc 100644 --- a/common/base.sh +++ b/common/base.sh @@ -400,6 +400,7 @@ check_bad_ws_options() # $2 - nfqws/tpws options if [ "$1" = 1 ] && has_bad_ws_options "$2"; then echo "!!! REFUSING TO USE BAD OPTIONS : $2" + help_bad_ws_options return 1 else return 0 @@ -408,8 +409,7 @@ check_bad_ws_options() help_bad_ws_options() { echo "WARNING ! you have specified --ipset option" - echo "WARNING ! it would work but on $UNAME it's not the best option" + echo "WARNING ! it would work but on ${UNAME:-$(uname)} it's not the best option" echo "WARNING ! you should use kernel mode sets. they are much more efficient." echo "WARNING ! to use ipsets you have to write your own custom script" - echo "WARNING ! installer will stop here to prevent distribution of easy to use but bad copy-paste solutions" }