# (c) 2009 Harald Becker @ Telefonsparbuch.de
# LED Steuerung
if [ "$ledctrl" = 2 -a -e /bin/led-ctrl ];then
ledan=$ledan2
ledaus=$ledaus2
fi
led(){
if [ "$ledstatus" -eq 1 ];then
# Keine Verriegelung beim LED-Test
if [ "$3" = "test" ]; then
if [ "$ledctrl" = 2 -a -e /bin/led-ctrl ];then
/bin/led-ctrl "$1"
else
echo "SET $ledselect = $1" >/dev/new_led &
fi
else
# LED-verriegelung
if [ ! -f /var/tmp/ps.chk ];then
local i=0
else local i=$(sed q /var/tmp/ps.chk)
fi
if [ "$1" != "$ledaus2" ] || [ $i -eq 1 ];then
if [ "$ledctrl" = 2 -a -e /bin/led-ctrl ];then
/bin/led-ctrl "$1"
else
echo "SET $ledselect = $1" >/dev/new_led &
fi
if [ "$1" = "$ledaus2" ]
then
rm /var/tmp/ps.chk
else
echo $(($i+1)) > /var/tmp/ps.chk
fi
else
echo $(($i-1)) > /var/tmp/ps.chk
fi
fi
fi
}
#!/bin/ash
# Copyright (c) 2009 Telefonsparbuch.de / Harald Becker
echo -e "Pragma: no-cache\nCache-Control: no-cache\nExpires: -1\nMime-Version: 1.0"
echo -e "Content-Type: text/html; charset=iso-8859-15\n"
cat <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Fritz!Load Monitoring</title>
<style><!--
body {
font-family: Arial, Helvetica, sans-serif; color: #000000; margin: 14px 0px 0px 0px;
background-color: #fff1b1;
}
pre{font-size:16px;font-weight:bold}
--></style>
</head><body>
EOF
# Source from TSB-LCR
local oldIFS="$IFS"
export IFS="&"
for data in $QUERY_STRING; do
export IFS="$oldIFS"
name="${data%\=*}"
value="${data#$name}"
value="${value#=}"
eval "Q_${name}=\"$value\""
done
echo "LED: $Q_led / LED-CTRL: LED: $Q_ledctrl"
cd ../bin; ./led.sh "$Q_led" "$Q_ledctrl" "test" &
#!/bin/ash
led_event="$1"
SET_ledctrl="$2"
test="$3"
pdir=$(pwd)/..
. $pdir/config/fritzload.ini
[ -n "$SET_ledctrl" ] && ledctrl=$SET_ledctrl
# LED Routinen
. $pdir/lib/led.sh
if [ "$led_event" = "ledaus" ];then
led_event="$ledaus"
elif [ "$led_event" = "ledan" ];then
led_event="$ledan"
fi
led "$led_event" 1 "$test"
Bei den neueren Versionen kann man Fritz!Load mit Hilfe des Befehls "install -d" deinstallieren.
/usr/www/html/cgi-bin/fritzload/gui_download.cgi: line 217: cannot create /var/media/ftp/SanDisk-U3CruzerMicro-01/fritzload/cgi/../config/gui_download.ini: Read-only file system
FAILED: 09:27: Fritz!Box-Login nicht möglich - Kennwort falsch?
FEHLER: Die Anmeldung ist momentan gesperrt.