summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-scripts/net.modules.d/iptunnel')
-rw-r--r--net-scripts/net.modules.d/iptunnel6
1 files changed, 3 insertions, 3 deletions
diff --git a/net-scripts/net.modules.d/iptunnel b/net-scripts/net.modules.d/iptunnel
index 572f369..73e7594 100644
--- a/net-scripts/net.modules.d/iptunnel
+++ b/net-scripts/net.modules.d/iptunnel
@@ -21,11 +21,11 @@ iptunnel_pre_start() {
local iface="$1" opts ifvar=$( bash_variable "$1" )
# Get our options
- eval opts=\"\$\{iptunnel_${ifvar}\}\"
- [[ -z ${opts} ]] && return 0
+ eval opts="iptunnel_${ifvar}"
+ [[ -z ${!opts} ]] && return 0
ebegin "Creating tunnel ${iface}"
- interface_tunnel add "${iface}" ${opts}
+ interface_tunnel add "${iface}" ${!opts}
eend "$?"
}