3 .
/usr
/lib
/webif
/webif.sh
8 ""|
0)FORM_mode
=nochange
11 nochange
) header
$FORM_cat .
"@TR<<No config change.|No configuration changes were made.>>";;
13 rm -rf /tmp
/.webif
>&- 2>&-
14 header
$FORM_cat .
"@TR<<Config discarded.|Your configuration changes have been discarded.>>"
16 echo "${FORM_prev:+<meta http-equiv=\"refresh\" content=\"2; URL=$FORM_prev\" />}"
19 header
$FORM_cat .
"@TR<<Config changes:|Current configuration changes:>>"
21 for configname
in config-
*; do
22 grep = $configname >&- 2>&- && {
23 echo -n "<h3>${configname#config-}</h3><br /><pre>"
29 for configname
in file-
*; do
30 exists
"$configname" && CONFIGFILES
="$CONFIGFILES ${configname#file-}"
32 CONFIGFILES
="${CONFIGFILES:+<h3 style="display:inline">Config files: </h3>$CONFIGFILES<br />}"
36 header
$FORM_cat .
"@TR<<Updating config...|Updating your configuration...>>"
39 sh
/usr
/lib
/webif
/apply.sh
2>&1
40 echo "</pre>${FORM_prev:+<meta http-equiv=\"refresh\" content=\"2; URL=$FORM_prev\" />}"