#!/bin/sh . /usr/lib/libmodcgi.sh sec_begin '$(lang de:"Starttyp" en:"Start type")' cgi_print_radiogroup_service_starttype "enabled" "$SUNDTEK_ENABLED" "" "" 0 sec_end sec_begin '$(lang de:"Informationen" en:"Informations")' echo "$(lang de:"Treiberversion" en:"Driver version"):" echo -n '
'
sundtek-mediasrv --build 2>&1 | html
echo '
' if [ "$(/mod/etc/init.d/rc.sundtek status 2>/dev/null)" == "running" ]; then echo "$(lang de:"Unterstützte Hardware" en:"Supported hardware"):" echo -n '
'
	sundtek-mediaclient  --enumdevices 2>&1 | grep -EA1 "^device|SERIAL" | sed '2,3d' | html
	echo '
' echo "$(lang de:"Verbundene Clients" en:"Connected clients"):" echo -n '
'
	sundtek-mediaclient  --lc 2>&1 | grep -vE '^\*|^ *$' | html
	echo '
' fi sec_end sec_begin '$(lang de:"Konfiguration" en:"Configuration")' cat << EOF $(lang de:"Parameter für 'sundtek-mediaclient' (einer pro Zeile)" en:"Parameters for 'sundtek-mediaclient' (one per row)")

EOF sec_end