diff options
Diffstat (limited to 'net-scripts/net.modules.d/essidnet')
-rw-r--r-- | net-scripts/net.modules.d/essidnet | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net-scripts/net.modules.d/essidnet b/net-scripts/net.modules.d/essidnet index 32f0f3f..6956c31 100644 --- a/net-scripts/net.modules.d/essidnet +++ b/net-scripts/net.modules.d/essidnet @@ -42,8 +42,8 @@ essidnet_pre_start() { configure_variables "${iface}" "${essid}" "${mac}" # Backwards compat for old gateway var - eval x=\"\$\{gateway_${essid}\}\" - [[ -n ${x} ]] && gateway="${iface}/${x}" + x="gateway_${essid}}" + [[ -n ${!x} ]] && gateway="${iface}/${!x}" veend 0 2>/dev/null return 0 |