#!/bin/bash net=$(/sbin/e-smith/db configuration getprop openvpn-routed Network) addr=${net%%/*} mask=${net#*/} db=$(/sbin/e-smith/db networks getprop $addr VPNRouted) if [ -z $db ]; then /sbin/e-smith/db networks set $addr network Mask $mask VPNRouted yes Removable no /sbin/e-smith/signal-event network-create $addr fi exit 0