#!/bin/sh . /usr/lib/libmodcgi.sh if [ "$SISPMCTL_SKIN" = "web2" ] then [ -d /usr/share/sispmctl-web2 ] || SISPMCTL_SKIN="web1" fi skin_web1=''; skin_web2='' [ "$SISPMCTL_SKIN" = "web1" ] && skin_web1=' selected' [ "$SISPMCTL_SKIN" = "web2" ] && skin_web2=' selected' check "$SISPMCTL_ENABLED" yes:auto inetd "*":man sec_begin '$(lang de:"Starttyp" en:"Start type")' cat << EOF
EOF sec_end sec_begin '$(lang de:"Integrierter WEB-Server" en:"Integrated WEB Server")' if [ -d /usr/share/sispmctl-web2 ] then cat << EOF
Skin: EOF fi cat << EOF $(lang de:"Default-Port" en:"Default port"):
EOF sec_end sispmss="$(sispmctl -s)" IDs="$(echo "$sispmss" | sed -n -e '/serial number/s/serial number\:[[:space:]]*//p')" TYPEs="$(echo "$sispmss" | sed -n -e '/device type/s/device type\:[[:space:]]*//p')" if [ -n "$IDs" ] then NUMB_DEV=$(echo "$IDs" | wc -l) sec_begin '$(lang de:"Erkannte Steckdosenleisten" en:"Detected multiple socket outlets")' echo "" echo '$(lang de:"Seriennummer" en:"Serial No") | ' echo '$(lang de:"Typ" en:"Type") | ' echo 'Name | ' echo '$(lang de:"Status" en:"State") | ||
" echo "$curr_id" echo " | " echo "" echo "$TYPEs" | sed -n "${ii}p" echo " | " jj=1 ll=0 while [ $jj -le $((SISPMCTL_NUMOFDEV)) ] do eval ID_GLOBAL=\$SISPMCTL_D${jj}_ID eval NAME_GLOBAL=\$SISPMCTL_D${jj}_NAME if [ "$curr_id" = "$ID_GLOBAL" ] then echo "$NAME_GLOBAL" [ $ll -eq 0 ] && ll=$jj fi jj=$(($jj + 1)) done echo " | " kk=1 while [ $kk -le 4 ] do eval NAME_O_curr=\$SISPMCTL_D${ll}_O${kk} [ -z "$NAME_O_curr" ] && NAME_O_curr="Socket ${kk}" curr_onoff="$(echo "$get_onoff" | sed -n "${kk}p")" curr_ps="$(echo "$get_ps" | sed -n "${kk}p")" if [ "$curr_onoff" = "on" -a "$curr_ps" = "on" ] then echo "" else if [ "$curr_onoff" = "on" -a "$curr_ps" = "off" ] then echo " | " else echo " | " fi fi echo "$NAME_O_curr | " kk=$(($kk + 1)) done echo "
$(lang de:"Anzahl der verwalteten Steckdosenleisten" en:"Number of administrated devices"):
" echo '' echo '$(lang de:"Seriennummer" en:"Serial No") | ' echo '$(lang de:"Benennung" en:"Naming") | ' echo '$(lang de:"Steckdose" en:"Socket") 1 | ' echo '$(lang de:"Steckdose" en:"Socket") 2 | ' echo '$(lang de:"Steckdose" en:"Socket") 3 | ' echo '$(lang de:"Steckdose" en:"Socket") 4 | ' echo 'Port |