#!/bin/sh

echo 'Content-Type: text/html'
echo 'Cache-control: no-cache'
echo 'Cache-control: no-store'
echo 'Pragma: no-cache'
echo 'Expires: 0'
echo ''

echo "<style> input { 	border: 1px solid #222942;	background-color: #e3e6ed;	font-size: 11px; } </style>"
echo "<form action=\"/cgi-bin/system/firmware/formhandler_file?func=install_image\" enctype=\"multipart/form-data\" method=\"post\">";
echo "<input type=\"hidden\" name=\"img_type\" value=\"img\">"
echo "<input type=\"hidden\" name=\"destination\" value=\"/tmp/image.img\">";
echo "<input type=\"hidden\" name=\"temp_space\" value=\"/tmp\">";
echo "<input name=\"files\" type=\"file\">&nbsp;&nbsp;";
echo "<input value=\"Begin installation\" type=\"submit\" onclick=\"this.disabled=true; this.value='Please wait while uploading image..'; return true;\">";
echo "</form>"