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 16:45:23.000000000 +0200 |
3 |
|
|
+++ mezzanine_patched_smeserver-openvpn-s2s-0.1/root/etc/openvpn/s2s/bin/up 2010-10-17 16:44:56.000000000 +0200 |
4 |
|
|
@@ -30,7 +30,7 @@ |
5 |
|
|
# if the network already exists in the DB, just push the route |
6 |
|
|
/sbin/route add -net ${!net} netmask ${!mask} gw $ifconfig_remote |
7 |
|
|
else |
8 |
|
|
- /sbin/e-smith/db networks set ${!net} network Mask ${!mask} Router $ifconfig_remote VPN $vpnid |
9 |
|
|
+ /sbin/e-smith/db networks set ${!net} network Mask ${!mask} Router $ifconfig_remote VPN $vpnid Removable no |
10 |
|
|
/sbin/e-smith/signal-event network-create ${!net} |
11 |
|
|
fi |
12 |
|
|
fi |
13 |
|
|
@@ -40,7 +40,7 @@ |
14 |
|
|
# Check route for the VPN itself |
15 |
|
|
db=$(/sbin/e-smith/db networks getprop $ifconfig_remote VPN) |
16 |
|
|
if [ -z $db ]; then |
17 |
|
|
- /sbin/e-smith/db networks set $ifconfig_remote network Mask 255.255.255.255 VPN $vpnid |
18 |
|
|
+ /sbin/e-smith/db networks set $ifconfig_remote network Mask 255.255.255.255 VPN $vpnid Removale no |
19 |
|
|
/sbin/e-smith/signal-event network-create $ifconfig_remote |
20 |
|
|
fi |
21 |
|
|
|