diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-06-19 23:49:13 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-19 23:49:30 +0200 |
commit | 685609ae1b725fa60ab1cc07967be4f452995ee1 (patch) | |
tree | be7f90533ea6c58f081367968865857b1a81ea72 /src/connections | |
parent | e6f7491fb2e7a355236e78e853f8b95e47c9fd1e (diff) | |
download | netctl-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/tuntap | 4 |
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 } |