summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-25 22:34:05 +0000
committerRoy Marples <roy@marples.name>2008-05-25 22:34:05 +0000
commitb03282b901db41f91c442b9d66a9c3b6fc209f83 (patch)
treef14d126b205526ec0c486015c9b5625e4d0f0e9d /net
parent08081f7ef4d9d91093cafa4f61b6f4f7b97e200a (diff)
downloadopenrc-b03282b901db41f91c442b9d66a9c3b6fc209f83.tar.gz
openrc-b03282b901db41f91c442b9d66a9c3b6fc209f83.tar.bz2
openrc-b03282b901db41f91c442b9d66a9c3b6fc209f83.tar.xz
Fix tunnel, #80. Someone should fix iproute2 documentation and help files also :P
Diffstat (limited to 'net')
-rw-r--r--net/iproute2.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh
index 5105d96..2d92d8f 100644
--- a/net/iproute2.sh
+++ b/net/iproute2.sh
@@ -198,7 +198,7 @@ iproute2_pre_start()
metric=1000
ebegin "Creating tunnel ${IFVAR}"
- ip tunnel add ${tunnel} name dev "${IFACE}"
+ ip tunnel add ${tunnel} name "${IFACE}"
eend $? || return 1
_up
fi
@@ -234,7 +234,7 @@ iproute2_post_stop()
if [ "${IFACE}" != "sit0" ]; then
if [ -n "$(ip tunnel show "${IFACE}" 2>/dev/null)" ]; then
ebegin "Destroying tunnel ${IFACE}"
- ip tunnel del dev "${IFACE}"
+ ip tunnel del "${IFACE}"
eend $?
fi
fi