Fix tunnel, #80. Someone should fix iproute2 documentation and help files also :P
This commit is contained in:
parent
08081f7ef4
commit
b03282b901
@ -198,7 +198,7 @@ iproute2_pre_start()
|
|||||||
metric=1000
|
metric=1000
|
||||||
|
|
||||||
ebegin "Creating tunnel ${IFVAR}"
|
ebegin "Creating tunnel ${IFVAR}"
|
||||||
ip tunnel add ${tunnel} name dev "${IFACE}"
|
ip tunnel add ${tunnel} name "${IFACE}"
|
||||||
eend $? || return 1
|
eend $? || return 1
|
||||||
_up
|
_up
|
||||||
fi
|
fi
|
||||||
@ -234,7 +234,7 @@ iproute2_post_stop()
|
|||||||
if [ "${IFACE}" != "sit0" ]; then
|
if [ "${IFACE}" != "sit0" ]; then
|
||||||
if [ -n "$(ip tunnel show "${IFACE}" 2>/dev/null)" ]; then
|
if [ -n "$(ip tunnel show "${IFACE}" 2>/dev/null)" ]; then
|
||||||
ebegin "Destroying tunnel ${IFACE}"
|
ebegin "Destroying tunnel ${IFACE}"
|
||||||
ip tunnel del dev "${IFACE}"
|
ip tunnel del "${IFACE}"
|
||||||
eend $?
|
eend $?
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user