Set default network in the up script

tags/0.1.4_el5
Daniel Berteaud 9 years ago
parent 019d0e2d50
commit d66b9396e1
  1. 2
      root/etc/openvpn/routed/bin/up

@ -1,6 +1,6 @@
#!/bin/bash
net=$(/sbin/e-smith/db configuration getprop openvpn-routed Network)
net=$(/sbin/e-smith/db configuration getprop openvpn-routed Network || echo '192.168.29.0/255.255.255.0')
addr=${net%%/*}
mask=${net#*/}

Loading…
Cancel
Save