#!/bin/sh . /usr/lib/libmodcgi.sh [ -r "/mod/etc/conf/hp-utils.cfg" ] && . /mod/etc/conf/hp-utils.cfg cgi_begin 'hp-utils' action=$(cgi_param action) sel=' style="background-color: #bae3ff;"' maint_sel='' maint_clean_sel='' maint_align_sel='' if [ -z "$action" ]; then maint_sel=$sel elif [ "$action" = "clean" ]; then maint_clean_sel=$sel elif [ "$action" = "align" ]; then maint_align_sel=$sel fi cat << EOF
EOF if [ -z "$action" ]; then sec_begin $(lang de:"Wartung" en:"Maintenance") cat << EOF$(lang de:"Druckkopfreinigung" en:"Print Cartridge Cleaning") | |
$(lang de:"Druckkopfausrichtung" en:"Print Cartridge Alignment") |
$(lang de:"Drucker nicht konfiguriert." en:"Printer not configured.")
" else cat << EOF EOF fi sec_end elif [ "$action" = "align" ]; then sec_begin "$(lang de:"Druckkopfausrichtung" en:"Print Cartridge Alignment")" echo "$(lang de:"(noch) nicht implementiert" en:"not (yet) implemented")
" sec_end fi cgi_end