summaryrefslogtreecommitdiffstats
path: root/src/connections/tuntap
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections/tuntap')
-rw-r--r--src/connections/tuntap8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/connections/tuntap b/src/connections/tuntap
index 7a7f5f1..6985c8c 100644
--- a/src/connections/tuntap
+++ b/src/connections/tuntap
@@ -9,10 +9,9 @@ tuntap_up() {
exit 1
else
ip tuntap add dev "$INTERFACE" mode "$MODE" \
- user "$USER" group "$GROUP" &>/dev/null
+ user "$USER" group "$GROUP"
fi
- bring_interface up "$INTERFACE"
- "$CONN_DIR/ethernet" up "$1"
+ IP=${IP-no} "$CONN_DIR/ethernet" up "$1"
return 0
}
@@ -20,8 +19,7 @@ tuntap_down() {
load_profile "$1"
"$CONN_DIR/ethernet" down "$1"
- bring_interface down "$INTERFACE"
- ip tuntap del "$INTERFACE" mode "$MODE" &>/dev/null
+ ip tuntap del dev "$INTERFACE" mode "$MODE"
return 0
}