mirror of https://github.com/aredn/aredn.git
fixed function calls that were moved to external lib (to save space)
This commit is contained in:
parent
a8d68cd021
commit
ade8026e32
|
@ -175,8 +175,6 @@ sub vpn_setup_required()
|
|||
#################################
|
||||
sub install_vtun()
|
||||
{
|
||||
&install_vtun();
|
||||
|
||||
# check free disk space - get real values
|
||||
$freespace=&check_freespace();
|
||||
|
||||
|
@ -191,7 +189,7 @@ sub install_vtun()
|
|||
system "opkg install kmod-tun zlib libopenssl liblzo vtun > /tmp/tunnel_install.log";
|
||||
|
||||
# add network interfaces
|
||||
&add_network_interfaces();
|
||||
add_network_interfaces();
|
||||
|
||||
# Reboot required
|
||||
system "touch /tmp/reboot-required";
|
||||
|
|
|
@ -32,10 +32,10 @@ if($parms{button_install})
|
|||
&install_vtun_server();
|
||||
}
|
||||
|
||||
&reboot_required() if($config eq "" or -e "/tmp/reboot-required");
|
||||
&vpn_setup_required() unless(-e "/usr/sbin/vtund" );
|
||||
&get_model();
|
||||
&get_active_tun();
|
||||
reboot_required() if($config eq "" or -e "/tmp/reboot-required");
|
||||
vpn_setup_required() unless(-e "/usr/sbin/vtund" );
|
||||
get_model();
|
||||
get_active_tun();
|
||||
|
||||
#################
|
||||
# If RESET or FIRST TIME, load clients/servers from file into parms --- CHANGE not needed?
|
||||
|
@ -53,7 +53,7 @@ if($parms{button_reset})
|
|||
# get vtun network address
|
||||
#################
|
||||
@netw = ();
|
||||
@netw = &get_server_network_address();
|
||||
@netw = get_server_network_address();
|
||||
#&DEBUGEXIT(@netw[2]);
|
||||
|
||||
#################
|
||||
|
@ -488,10 +488,10 @@ sub get_client_info()
|
|||
#################################
|
||||
sub install_vtun_server()
|
||||
{
|
||||
&install_vtun();
|
||||
install_vtun();
|
||||
|
||||
# Prep firewall for server
|
||||
&open_5525_on_wan();
|
||||
open_5525_on_wan();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue