#!/usr/bin/webif-page >" /bin/thinclient force echo "@TR<>" } # execute selected script if [ ! -z $FORM_file_exe ]; then ash /www/updates/$FORM_file_exe status="@TR<>" fi # delete selected script if [ ! -z $FORM_file_del ]; then rm -f /www/updates/$FORM_file_del status="@TR<>" fi updatefiles="$(ls /www/updates/thinclient* 2>/dev/null)" if [ -n "$updatefiles" ]; then for file in $updatefiles ; do filename=${file##*/} filesize=$(ls -l $file | tr -s " " | cut -d " " -f 5) display_form <@TR<> add_label_cell|@TR<> add_label_cell|@TR<> end_row EOF done else status="$status
@TR<>" fi logfile="/www/updates/fonupdate.log" if [ -s $logfile ]; then filename=${logfile##*/} filesize=$(ls -l $logfile | tr -s " " | cut -d " " -f 5) display_form <@TR<> add_label_cell|@TR<> end_row EOF fi display_form <>|tableTextButton end_row end_table EOF # Show selected script if [ -f /www/updates/${FORM_file_show} ]; then filecontent="" while read line; do filecontent="$filecontent$line
" done < /www/updates/${FORM_file_show} display_form <> ${FORM_file_show} add_row add_normal_cell|$filecontent end_row end_table EOF fi display_form <