copy_gateway-config.sh: check if given network-name exists.

This commit is contained in:
Christoph 2018-05-08 01:58:12 +02:00
parent 36d2c4d703
commit 6bbce9d7d9

View File

@ -46,9 +46,31 @@ exit
[ $# -ne "1" ] && usage "wrong number of arguments"
case $1 in
CKUBU)
network=$1
_igmproxy=true
_add_support_if=true
;;
NONE-CKUBU|NONE-WF)
network=$1
_igmproxy=false
_add_support_if=false
;;
123|AK|AKB|ANW-URB|ANW-KM|B3-Bornim|FLR-BRB|GA-AL|GA-Ersatz|GA-NH|GA-Schloss|JONAS|Kanzlei-Kiel|MBR|OOLM|OPP|ReachOut|SPR-BE|WF)
network=$1
_igmproxy=false
_add_support_if=true
;;
*)
usage
exit 1
esac
_realpath=`which realpath`
if [ -z "$_realpath" ]; then
usage "realpath is not installed but neeeded"
usage "realpath is not installed but needed."
fi
filesystem_prefix=""