herb61 schrieb:Hallo
Kann ich das mit den Pseudoimage auch auf einer Gemoddeten SpeedportW701V machen?
Ich benutze dafür sowas in meine debug.cfgsi-b schrieb:Ich hätte noch eine kleine Anregung:
Es wäre toll, wenn man mehrere Computer aufwecken könnte. Für den ersten PC gibt man ein: /var/tmp/startpc1 ; für den 2.: /var/tmp/startpc2 ...
Das wäre noch eine tolle Funktion.
if [ -f /usr/bin/ether-wake ]
then
ETHERWAKE=/usr/bin/ether-wake
else
ln -sf $PWD/busybox-2.6 /var/tmp/ether-wake
ETHERWAKE=/var/tmp/ether-wake
fi
# WOL-Scripte für alle DHCP LAN Clients erzeugen (WLAN macht wohl keinen Sinn)
grep '^lease' /var/flash/multid.leases | while read typ mac ip time name mac2
do
# " loswerden und in lowercase konvertieren
name=$(echo $name | tr -d '"' | tr '[A-Z]' '[a-z]')
cat > /var/tmp/start_${name:=noname} <<-EOF
#!/bin/sh
ping -c 1 $ip >/dev/null 2>&1
if [ \$? = 0 ]
then
echo "$name ($ip) läuft schon"
else
echo "Sende WOL an $name ($mac) ..."
# -i eth0 ist Default und hier das Richtige
$ETHERWAKE $mac
echo "Warte ob/bis $name ($ip) startet"
fi
EOF
chmod +x /var/tmp/start_$name
done
DEF error,0 = 1,128,0,all
DEF error,1 = 3,127,0,all
DOUBLE error,0 TO error,1
DEF power,0 = 0,7,0,power
DEF power,1 = 0,7,0,power
DEF tr69,0 = 2,6,1,tr69
DEF cpmac,3 = 99,0,2,lan4
DEF cpmac,2 = 99,1,3,lan3
DEF cpmac,1 = 99,2,4,lan2
DEF cpmac,0 = 99,3,5,lan
DEF wlan,0 = 2,5,6,wlan
DEF ab,1 = 2,4,7,festnetz
DEF ab,2 = 2,4,7,festnetz
DEF ab,3 = 2,4,7,festnetz
DEF voip_con,0 = 2,3,8,voip_con
DEF pppoe,0 = 2,2,9,dsl
DEF pppoe,1 = 2,2,9,dsl
DEF adsl,0 = 2,1,10,adsl
DEF adsl,1 = 2,1,10,adsl
DEF ata,0 = 2,0,11,ata
DEF usb,0 = 99,32,12,usb
DEF usb,1 = 99,32,12,usb
DEF blockring,0 = 99,32,13,blockring
DEF missedcall,0 = 99,32,14,missedcall
DEF budget,0 = 99,32,15,budget
DEF info,0 = 99,32,16,info
DEF info,1 = 99,32,16,info
DEF info,2 = 99,32,16,info
DEF info,3 = 99,32,16,info
DEF info,4 = 99,32,16,info
DEF internet,0 = 99,32,17,internet
DEF internet,1 = 99,32,17,internet
DEF isdn,0 = 99,32,18,isdn
DEF isdn,1 = 99,32,18,isdn
DEF isdn,2 = 99,32,18,isdn
DEF stick_surf,0 = 99,32,19,stick_surf
DEF stick_surf,1 = 99,32,19,stick_surf
DEF stick_surf,2 = 99,32,19,stick_surf
DEF stick_surf,3 = 99,32,19,stick_surf
DEF null,0 = 99,32,20,null_device
MAP budget,0 TO info,1
MAP ab,2 TO null,0
SET power,0 = 1
+ KERNEL_VERSION=2.6.13.1-ohio
+ [ -z 2.6.13.1-ohio ]
+ KERNEL_VERSION=2.6.13.1-ohio
make it executable
/etc # sh -x /var/flash/debug.cfg
+ LED_DEVICE=/proc/led_mod/led
+ [ ! -f /proc/led_mod/led ]
+ LED_DEVICE=/var/led
+ echo set led: /var/led
set led: /var/led
+ echo set internet phone led to blink (modul=14, state=3)
set internet phone led to blink (modul=14, state=3)
+ echo 14,3
+ uname -r
+ grep 2.6
+ KERNEL_VERSION=2.6.13.1-ohio
+ [ -z 2.6.13.1-ohio ]
+ KERNEL_VERSION=2.6.13.1-ohio
+ ETHERWAKE=ether-wake
+ BUSYBOX=/bin/busybox
+ grep tffs /proc/devices
+ major=240 tffs
+ tffs_major=240
+ cat
+ mknod /var/flash/calllog c 240 119
mknod: /var/flash/calllog: File exists
+ cp /var/calllog /var/flash/calllog
+ cat
+ chmod +x /var/tmp/invers.sh
+ cat
+ chmod +x /var/tmp/callmessage.sh
+ echo #!/bin/sh
+ chmod +x /var/tmp/woc.sh
+ cat
+ chmod +x /var/tmp/parse_telefon.sh
+ echo 14,1
/etc #