From f1d6b8a9d3c06f74e904959887cf043d09aff687 Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Thu, 2 Jun 2011 20:51:50 +0000 Subject: Branch for updates --- firewall_wizard/scripts/check_ext_device.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 firewall_wizard/scripts/check_ext_device.sh (limited to 'firewall_wizard/scripts/check_ext_device.sh') diff --git a/firewall_wizard/scripts/check_ext_device.sh b/firewall_wizard/scripts/check_ext_device.sh new file mode 100755 index 00000000..c1fc0092 --- /dev/null +++ b/firewall_wizard/scripts/check_ext_device.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# script for wizard firewall configuration +# +# checking if the provided value is correct : +# strip the @, need at least a dot + + +dtmp=`echo ${wiz_ext_device} |sed -e 's/^\(\w*\).*$/\1/'` +if [ -z "${dtmp}" ] ;then + echo_debug "wiz_ext_device is empty, should not." + exit 1 +fi + +# all seems to be ok +exit 10 -- cgit v1.2.1