Changeset 25
- Timestamp:
- 03/14/07 16:13:10 (2 years ago)
- Files:
-
- trunk/usr/lib/webif/form.awk (modified) (1 diff)
- trunk/www/cgi-bin/webif/autoupdate.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/usr/lib/webif/form.awk
r22 r25 256 256 print("<select id=\"" $2 "\" valign=\"middle\" name=\"" $2 "\" class=\"" $4 "\">"); 257 257 print("<option value=\"stable\""); if( $3 == "stable" ) print(" selected=\"selcted\""); print(">stable</option>"); 258 # We prolly don't have a connection, so print the selected one if it's not stable 259 if ( $5 == "" && $3 != "stable" ) { 260 print("<option value=\"" $3 "\" selected=\"selected\">" $3 "</option>"); 261 } 258 262 for(i = 5; $(i) != ""; i++) { 259 263 print("<option value=\"" $(i) "\""); if ( $(i) == $3 ) printf(" selected=\"selected\""); printf(">" $(i) "</option>"); trunk/www/cgi-bin/webif/autoupdate.sh
r24 r25 69 69 echo "@TR<<Installed version:>> $instversion<br/>" 70 70 71 if ping -c 1 "$(echo $url|awk -F/ '{print $3}')" > /dev/null ; then71 if ping -c 1 "$(echo $url|awk -F/ '{print $3}')" > /dev/null 2> /dev/null; then 72 72 if wget -q -O /dev/null $url/$FORM_branch/$instversion/install.sh 2> /dev/null; then 73 73 echo "@TR<<Updates available>><br/>";
