diff options
author | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-05 07:37:06 +0000 |
---|---|---|
committer | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-05 07:37:06 +0000 |
commit | f7cca6ea32444a7764d54989bf360530d07d6092 (patch) | |
tree | 779049ed3b297fa40354f497a5e0d6ca86505096 /firewall_wizard/scripts/check_ext_device.sh | |
parent | 52d4a220029dac288c8b86c3271ce9ab5fbdc6c2 (diff) | |
download | drakwizard-f7cca6ea32444a7764d54989bf360530d07d6092.tar drakwizard-f7cca6ea32444a7764d54989bf360530d07d6092.tar.gz drakwizard-f7cca6ea32444a7764d54989bf360530d07d6092.tar.bz2 drakwizard-f7cca6ea32444a7764d54989bf360530d07d6092.tar.xz drakwizard-f7cca6ea32444a7764d54989bf360530d07d6092.zip |
untouched
Diffstat (limited to 'firewall_wizard/scripts/check_ext_device.sh')
-rwxr-xr-x | firewall_wizard/scripts/check_ext_device.sh | 15 |
1 files changed, 15 insertions, 0 deletions
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 |