Lines 198-204
iproute2_pre_start()
Link Here
|
198 |
metric=1000 |
198 |
metric=1000 |
199 |
|
199 |
|
200 |
ebegin "Creating tunnel ${IFVAR}" |
200 |
ebegin "Creating tunnel ${IFVAR}" |
201 |
ip tunnel add ${tunnel} name dev "${IFACE}" |
201 |
ip tunnel add ${tunnel} name "${IFACE}" |
202 |
eend $? || return 1 |
202 |
eend $? || return 1 |
203 |
_up |
203 |
_up |
204 |
fi |
204 |
fi |
Lines 234-240
iproute2_post_stop()
Link Here
|
234 |
if [ "${IFACE}" != "sit0" ]; then |
234 |
if [ "${IFACE}" != "sit0" ]; then |
235 |
if [ -n "$(ip tunnel show "${IFACE}" 2>/dev/null)" ]; then |
235 |
if [ -n "$(ip tunnel show "${IFACE}" 2>/dev/null)" ]; then |
236 |
ebegin "Destroying tunnel ${IFACE}" |
236 |
ebegin "Destroying tunnel ${IFACE}" |
237 |
ip tunnel del dev "${IFACE}" |
237 |
ip tunnel del "${IFACE}" |
238 |
eend $? |
238 |
eend $? |
239 |
fi |
239 |
fi |
240 |
fi |
240 |
fi |