diff options
Diffstat (limited to 'net-scripts/net.modules.d/iptunnel')
-rw-r--r-- | net-scripts/net.modules.d/iptunnel | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net-scripts/net.modules.d/iptunnel b/net-scripts/net.modules.d/iptunnel index 13fd824..0f951ea 100644 --- a/net-scripts/net.modules.d/iptunnel +++ b/net-scripts/net.modules.d/iptunnel @@ -17,7 +17,7 @@ iptunnel_depend() { # # Create the device, give it the right perms iptunnel_pre_start() { - local iface="$1" opts ifvar=$( bash_variable "$1" ) + local iface="$1" opts ifvar="$(bash_variable "$1")" # Get our options eval opts="iptunnel_${ifvar}" @@ -38,11 +38,11 @@ iptunnel_stop() { [[ ${iface} == "sit0" ]] && return 0 interface_exists "${iface}" || return 0 - [[ -z $( interface_tunnel show "${iface}" 2>/dev/null ) ]] && return 0 + [[ -z $(interface_tunnel show "${iface}" 2>/dev/null) ]] && return 0 ebegin "Destroying tunnel ${iface}" interface_tunnel del "${iface}" - eend "$?" + eend $? } # vim:ts=4 |