#!/bin/sh . /www/cgi-bin/functions.sh lock_cgiwait . /www/cgi-bin/webupgrade.sh [ -f /tmp/determine_wan_success ] && rm -f /tmp/determine_wan_success [ -f /tmp/determine_wan_fail ] && rm -f /tmp/determine_wan_fail firmware_version=$(cat /firmware_version) new_version=$(cat $TMP_FIRMWARE_VER) print_cgi_header print_http_header "/funcs.js" print_nocommitload_header "" "download_image_process.html" "download_image" print_table_header "" cat <

$firmware_version $new_version EOF print_http_footer