#!/bin/sh OPENVPN=/etc/init.d/openvpn if [ ! -x $OPENVPN ]; then exit 0 fi if [ -n "$ICD_CONNECTION_ID" ]; then CONF=/etc/openvpn/$ICD_CONNECTION_ID.conf if [ ! -f $CONF ]; then exit 0 fi $OPENVPN start $ICD_CONNECTION_ID fi
#!/bin/sh OPENVPN=/etc/init.d/openvpn if [ ! -x $OPENVPN ]; then exit 0 fi if [ $IFACE = "wlan0" ]; then $OPENVPN stop fi