From 685609ae1b725fa60ab1cc07967be4f452995ee1 Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Sun, 19 Jun 2011 23:49:13 +0200 Subject: Add basic tuntap IP configuration capabilities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Oudompheng --- src/connections/tuntap | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/connections') 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 } -- cgit v1.2.3-24-g4f1b