copy_gateway-config.sh: check if given network-name exists.
This commit is contained in:
parent
36d2c4d703
commit
6bbce9d7d9
@ -46,9 +46,31 @@ exit
|
|||||||
|
|
||||||
[ $# -ne "1" ] && usage "wrong number of arguments"
|
[ $# -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`
|
_realpath=`which realpath`
|
||||||
if [ -z "$_realpath" ]; then
|
if [ -z "$_realpath" ]; then
|
||||||
usage "realpath is not installed but neeeded"
|
usage "realpath is not installed but needed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
filesystem_prefix=""
|
filesystem_prefix=""
|
||||||
|
Loading…
Reference in New Issue
Block a user