initial commit of file from CVS for smeserver-openvpn-routed on Thu 6 Mar 14:40:52 GMT 2025
This commit is contained in:
12
root/etc/openvpn/routed/bin/up
Normal file
12
root/etc/openvpn/routed/bin/up
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
net=$(/sbin/e-smith/db configuration getprop openvpn-routed Network || echo '192.168.29.0/255.255.255.0')
|
||||
addr=${net%%/*}
|
||||
mask=${net#*/}
|
||||
|
||||
db=$(/sbin/e-smith/db networks getprop $addr VPNRouted)
|
||||
if [ -z $db ]; then
|
||||
/sbin/e-smith/db networks set $addr network Mask $mask VPNRouted yes Removable no
|
||||
/sbin/e-smith/signal-event network-create $addr
|
||||
fi
|
||||
exit 0
|
Reference in New Issue
Block a user