Set default network in the up script

This commit is contained in:
Daniel Berteaud 2015-09-29 11:21:01 +02:00
parent 019d0e2d50
commit d66b9396e1
1 changed files with 1 additions and 1 deletions

View File

@ -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#*/}