This script file generates the packages specific web-page where the package specific configuration and settings can be configured.

In the build environment located at:


on router located at:


The Freetz GUI is based on the concept of Proccgi ( from Frank Pilhofer.

This is for the environment variables in the form of <PACKAGE>_<VARIABLENAME>
The input-fields in the HTML-pages will have the Tag name="<variablename>".
These fields correspond with the variables.
The GUI-pages all make use of a Frame-Formula, that is part of freetz, which after using the Apply button on the page, will read the values of these variables, and assigns to the corresponding environment variables.

Below a generic <package>.cgi file with only one config variable:


. /usr/lib/

check "$<PACKAGE>_ENABLED" yes:auto "*":man

sec_begin '$(lang de:"Starttyp" en:"Start type")'

cat << EOF
<input id="e1" type="radio" name="enabled" value="yes"$auto_chk><label for="e1">$(lang de:"Automatisch" en:"Automatic")</label>
<input id="e2" type="radio" name="enabled" value="no"$man_chk><label for="e2">$(lang de:"Manuell" en:"Manual")</label>
cat << EOF

sec_begin '$(lang de:"<package>" en:"<package>")'

cat << EOF

<p>$(lang de:"<Parameter>" en:"<Parameter>"): <input type="text" name="<parameter>" size="80" maxlength="255" value="$(html "$<PACKAGE>_<VARIBALE>")"></p>


NOTE: the lang instruction is used on the build environment only.
Using a file with the lang instruction on the router will generate the following output * error: language not set *
This (a bit misleading) message is generated by /bin/lang

cat /bin/lang

echo '*** error: language not set ***'
zuletzt geändert vor 4 Jahren Zuletzt geändert am 26.01.2014 00:48:59