Fix up script

tags/0.0.1
Daniel Berteaud 12 years ago
parent 69aa3d3988
commit 2995895c20
  1. 4
      root/etc/openvpn/routed/bin/up

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

Loading…
Cancel
Save