1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-openvpn-s2s-0.1/root/etc/openvpn/s2s/bin/up mezzanine_patched_smeserver-openvpn-s2s-0.1/root/etc/openvpn/s2s/bin/up |
2 |
|
|
--- smeserver-openvpn-s2s-0.1/root/etc/openvpn/s2s/bin/up 2010-10-17 01:24:00.000000000 +0200 |
3 |
|
|
+++ mezzanine_patched_smeserver-openvpn-s2s-0.1/root/etc/openvpn/s2s/bin/up 2010-10-17 01:23:41.000000000 +0200 |
4 |
|
|
@@ -28,7 +28,7 @@ |
5 |
|
|
db=$(/sbin/e-smith/db networks getprop ${!net} VPN) |
6 |
|
|
if [ ! -z $db ]; then |
7 |
|
|
# if the network already exists in the DB, just push the route |
8 |
|
|
- /sbin/route add -net $net netmask $mask gw $ifconfig_remote |
9 |
|
|
+ /sbin/route add -net ${!net} netmask ${!mask} gw $ifconfig_remote |
10 |
|
|
else |
11 |
|
|
/sbin/e-smith/db networks set ${!net} network Mask ${!mask} Router $ifconfig_remote VPN $vpnid |
12 |
|
|
/sbin/e-smith/signal-event network-create ${!net} |