summaryrefslogtreecommitdiffstats
path: root/src/connections/tuntap
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections/tuntap')
-rw-r--r--src/connections/tuntap4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/connections/tuntap b/src/connections/tuntap
index e2c8c5d..27641e4 100644
--- a/src/connections/tuntap
+++ b/src/connections/tuntap
@@ -11,12 +11,16 @@ tuntap_up() {
ip tuntap add dev "$INTERFACE" mode "$MODE" \
user "$USER" group "$GROUP" &>/dev/null
fi
+ bring_interface up "$INTERFACE"
+ "$CONN_DIR/ethernet" up "$1"
return 0
}
tuntap_down() {
load_profile "$1"
+ "$CONN_DIR/ethernet" down "$1"
+ bring_interface down "$INTERFACE"
ip tuntap del "$INTERFACE" mode "$MODE" &>/dev/null
return 0
}