summaryrefslogtreecommitdiffstats
path: root/src/connections
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-06-19 23:49:13 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-06-19 23:49:30 +0200
commit685609ae1b725fa60ab1cc07967be4f452995ee1 (patch)
treebe7f90533ea6c58f081367968865857b1a81ea72 /src/connections
parente6f7491fb2e7a355236e78e853f8b95e47c9fd1e (diff)
downloadnetctl-685609ae1b725fa60ab1cc07967be4f452995ee1.tar.gz
netctl-685609ae1b725fa60ab1cc07967be4f452995ee1.tar.xz
Add basic tuntap IP configuration capabilities
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'src/connections')
-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
}