| … | |
… | |
| 188 | |
188 | |
| 189 | return 0 |
189 | return 0 |
| 190 | } |
190 | } |
| 191 | |
191 | |
| 192 | iproute2_post_start() { |
192 | iproute2_post_start() { |
| 193 | # Kernel may not have tcp built in |
193 | # Kernel may not have IP built in |
| 194 | [ -e /proc/net/route ] && ip route flush table cache dev "${IFACE}" |
194 | if [ -e /proc/net/route ]; then |
|
|
195 | ip route flush table cache dev "${IFACE}" |
|
|
196 | fi |
| 195 | } |
197 | } |
| 196 | |
198 | |
| 197 | iproute2_post_stop() { |
199 | iproute2_post_stop() { |
| 198 | # Don't delete sit0 as it's a special tunnel |
200 | # Don't delete sit0 as it's a special tunnel |
| 199 | if [ "${IFACE}" != "sit0" ] ; then |
201 | if [ "${IFACE}" != "sit0" ] ; then |