Set default network in the up script
This commit is contained in:
parent
019d0e2d50
commit
d66b9396e1
|
@ -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…
Reference in New Issue