strongswan: use -eq when testing booleans
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
parent
6f00048eca
commit
ba1ead54f0
1 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ config_remote() {
|
||||||
config_name=$1
|
config_name=$1
|
||||||
|
|
||||||
config_get_bool enabled "$1" enabled 0
|
config_get_bool enabled "$1" enabled 0
|
||||||
[ "$enabled" = "0" ] && return
|
[ $enabled -eq 0 ] && return
|
||||||
|
|
||||||
config_get gateway "$1" gateway
|
config_get gateway "$1" gateway
|
||||||
config_get pre_shared_key "$1" pre_shared_key
|
config_get pre_shared_key "$1" pre_shared_key
|
||||||
|
@ -277,7 +277,7 @@ config_ipsec() {
|
||||||
|
|
||||||
config_get debug "$1" debug 0
|
config_get debug "$1" debug 0
|
||||||
config_get_bool rtinstall_enabled "$1" rtinstall_enabled 1
|
config_get_bool rtinstall_enabled "$1" rtinstall_enabled 1
|
||||||
[ $rtinstall_enabled = "1" ] && install_routes=yes || install_routes=no
|
[ $rtinstall_enabled -eq 1 ] && install_routes=yes || install_routes=no
|
||||||
|
|
||||||
# prepare extra charon config option ignore_routing_tables
|
# prepare extra charon config option ignore_routing_tables
|
||||||
for routing_table in $(config_get "$1" "ignore_routing_tables"); do
|
for routing_table in $(config_get "$1" "ignore_routing_tables"); do
|
||||||
|
|
Loading…
Reference in a new issue