diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index 4e9e5fea..37587363 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -57,7 +57,24 @@ sub firmware_list_gen $debug = 0; $| = 1; -read_postdata({acceptfile => true}); + +$tunnel_active= 0; +if ( -e "/usr/sbin/vtund" && open(my $tuncfgfd, '/etc/config/vtun')) { + while ( my $line = <$tuncfgfd> ) { + if ( $line =~ /option enabled '1'/i ) { + $tunnel_active = 1; + last; + } + } +} + + +if ( $tunnel_active ) { + read_postdata({acceptfile => false}); +} else { + read_postdata({acceptfile => true}); +} + reboot_page("/cgi-bin/status") if $parms{button_reboot}; read_query_string(); $node = nvram_get("node"); @@ -557,7 +574,9 @@ print "
+Note:Files can not be uploaded to a node while a tunnel +server or client connection is enabled. To upload any file (firmware, package +or ssh key) you must ensure all tunnel servers and clients are disabled. +Upload buttons will be disabled until tunnels are disabled. +
+Firmware Update is how new firmware is installed on the node. If you have a firmware image on your computer, click