- #!/bin/sh
- CONFIG=1
- source /usr/sbin/helper.sh
- TUN="tun"
- for IFACE in $(ls /sys/class/net); do
- if [ "${IFACE:0:${#TUN}}" == "${TUN}" ]; then
- logger "Re-establish routing for ${IFACE}"
- /jffs/scripts/openvpn-event "${IFACE}" "" "" "" "" init
- /jffs/scripts/openvpn-event "${IFACE}" "" "" "" ""
- fi
- done
|