From 5ead22aa482341f74b5e034ec7d04a16781d6898 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 21 Aug 2015 14:19:20 -0700 Subject: [PATCH] Move fatal_error() to lib.base Signed-off-by: Tom Eastep --- Shorewall-core/lib.base | 18 ++++++++++++++++++ Shorewall-core/lib.common | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Shorewall-core/lib.base b/Shorewall-core/lib.base index dd5380c23..2a28397e9 100644 --- a/Shorewall-core/lib.base +++ b/Shorewall-core/lib.base @@ -75,6 +75,24 @@ elif [ -z "${VARDIR}" ]; then VARDIR="${VARLIB}/${PRODUCT}" fi +# +# Fatal Error +# +fatal_error() # $@ = Message +{ + echo " ERROR: $@" >&2 + exit 2 +} + +# +# Not configured Error +# +not_configured_error() # $@ = Message +{ + echo " ERROR: $@" >&2 + exit 6 +} + # # Conditionally produce message # diff --git a/Shorewall-core/lib.common b/Shorewall-core/lib.common index f16be5dac..c1454266f 100644 --- a/Shorewall-core/lib.common +++ b/Shorewall-core/lib.common @@ -70,24 +70,6 @@ startup_error() # $* = Error Message exit 2 } -# -# Fatal Error -# -fatal_error() # $@ = Message -{ - echo " ERROR: $@" >&2 - exit 2 -} - -# -# Not configured Error -# -not_configured_error() # $@ = Message -{ - echo " ERROR: $@" >&2 - exit 6 -} - # # Create the required option string and run the passed script using # $SHOREWALL_SHELL