From 7d96ad2ffd1aa128936732e6e32d7a4af29f7035 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 29 Nov 2010 15:44:03 -0800 Subject: [PATCH] Add startup_error() function to the -lite CLIs --- Shorewall-lite/shorewall-lite | 9 +++++++++ Shorewall6-lite/shorewall6-lite | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/Shorewall-lite/shorewall-lite b/Shorewall-lite/shorewall-lite index 162d32cf0..e6d65b951 100755 --- a/Shorewall-lite/shorewall-lite +++ b/Shorewall-lite/shorewall-lite @@ -177,6 +177,15 @@ verify_firewall_script() { fi } +# +# Fatal error +# +startup_error() { + echo " ERROR: $@" >&2 + kill $$ + exit 1 +} + # # Start Command Executor # diff --git a/Shorewall6-lite/shorewall6-lite b/Shorewall6-lite/shorewall6-lite index c5cd6a00e..ff35c5663 100755 --- a/Shorewall6-lite/shorewall6-lite +++ b/Shorewall6-lite/shorewall6-lite @@ -176,6 +176,15 @@ verify_firewall_script() { fi } +# +# Fatal error +# +startup_error() { + echo " ERROR: $@" >&2 + kill $$ + exit 1 +} + # # Start Command Executor #