Hallo Leute, Wenn ich mein fritzbox anrufe bekomme ich jede menge fehler Versuche schon seit 3 Wochen mit dem zeug hier.. Hatt vielleicht jemand Zeit sicher über remote mir zu helfen oder so ? Mit freundlichen Grüßen Igdirli 76 Code: # Nummer wird verglichen /var/calllog: /var/calllog: 29: /var/tmp/startpc: not found Nummer ok...PC wird gestartet sh: Can't open /var/tmp/parse_telefon.sh /var/calllog: /var/calllog: 34: ENDCALLLOG: not found BusyBox v1.1.2 (2007.03.12-13:19+0000) multi-call binary Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR Create a special file (block, character, or pipe). Options: -m create the special file using the specified mode (default a=rw) TYPEs include: b: Make a block (buffered) device c or u: Make a character (un-buffered) device p: Make a named pipe. MAJOR and MINOR are ignored for named pipes PING ftp.the-construct.com (88.84.155.218): 56 data bytes 84 bytes from 88.84.155.218: icmp_seq=0 ttl=60 time=30.3 ms --- ftp.the-construct.com ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max = 30.3/30.3/30.3 ms wget: server returned error 404: HTTP/1.1 404 Not Found PING ftp.the-construct.com (88.84.155.218): 56 data bytes 84 bytes from 88.84.155.218: icmp_seq=0 ttl=60 time=29.5 ms --- ftp.the-construct.com ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max = 29.5/29.5/29.5 ms wget: server returned error 404: HTTP/1.1 404 Not Found chmod: /var/tmp/busybox: No such file or directory chmod: /var/tmp/dropbear: No such file or directory /var/calllog: /var/calllog: 210: /var/tmp/busybox: not found ln: dropbearkey: Read-only file system /var/calllog: /var/calllog: 216: /var/tmp/busybox: not found /var/calllog: /var/calllog: 233: /var/tmp/busybox: not found /var/calllog: /var/calllog: 252: /var/tmp/dropbear: not found /var/calllog: /var/calllog: 261: cannot create : Directory nonexistent telefon: SIGCHLD received!
Also Leute jetzt habe ich es bisschen gelöst... die Dateien lagen im falschen ordner im FTP z.B. : meineseite.de/files/linux26/ es müsste --> meineseite.de/files/ Mein nächstes problem der callog ist im var ordner drinne der busybox auch muss ich den ein Schreibtrecht oder so geben? Code: # cd tmp # ls group me_usermand.ctl parse_telefon.sh hosts me_multid.ctl startpc passwd me_dsld.ctl dropbear resolv.conf me_voipd.ctl busybox me_logic.ctl me_igdd.ctl shadow me_ctlmgr.ctl fboxdesc.xml dropbear_rsa_host_key csem igddesc.xml dropbear_dss_host_key to_wpa_hidden_sock callmessage.sh wpa_debug_sock woc.sh Code: Nummer wird verglichen /var/flash/calllog: /var/flash/calllog: 29: /var/tmp/startpc: not found Nummer ok...PC wird gestartet sh: Can't open /var/tmp/parse_telefon.sh /var/flash/calllog: /var/flash/calllog: 34: ENDCALLLOG: not found BusyBox v1.1.2 (2007.03.12-13:19+0000) multi-call binary Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR Create a special file (block, character, or pipe). Options: -m create the special file using the specified mode (default a=rw) TYPEs include: b: Make a block (buffered) device c or u: Make a character (un-buffered) device p: Make a named pipe. MAJOR and MINOR are ignored for named pipes cp: /var/calllog: No such file or directory telefon: set initial telefon time from linux time to 15:16 11.12 2008! Dec 11 15:16:21 usermand[424]: load_config(user): factory default loaded PING igdirli-webhoster.de (91.121.87.168): 56 data bytes 84 bytes from 91.121.87.168: icmp_seq=0 ttl=57 time=43.5 ms --- igdirli-webhoster.de ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max = 43.5/43.5/43.5 ms PING igdirli-webhoster.de (91.121.87.168): 56 data bytes 84 bytes from 91.121.87.168: icmp_seq=0 ttl=57 time=42.7 ms --- igdirli-webhoster.de ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max = 42.7/42.7/42.7 ms ln: dropbearkey: Read-only file system # /var/flash/calllog: /var/flash/calllog: 261: cannot create : Directory nonexis tent telefon: SIGCHLD received! EDIT : Jetzt tut sich nix mehr auch nachdem ich anrufe bekomme ich nix im telnet zusehen also ich muss immer nachdem ich den fritzbox einmal angerufen habe neustarten sonst passiert nix
Hallo Igdirli 76, bist du dir sicher, dass du auch im richtigen Verzeichnis befindest? Gib doch hier mal folgendes ein: Code: # cd tmp # ls group me_usermand.ctl parse_telefon.sh ... ... # [B][COLOR="Red"]pwd[/COLOR][/B] Da solltest du /var/tmp als Antwort erhalten. Joe
Hallo vielen dank für dein antwort. Genau wie du gesagt hast woran liegt der fehler? Kämpfe mich damit seit 2-3 Wochen :S : Code: # cd var # cd tmp # ls group me_usermand.ctl parse_telefon.sh hosts me_multid.ctl dropbear passwd me_dsld.ctl busybox resolv.conf me_voipd.ctl dropbear_rsa_host_key me_logic.ctl me_igdd.ctl dropbear_dss_host_key me_ctlmgr.ctl fboxdesc.xml startpc csem igddesc.xml shadow to_wpa_hidden_sock callmessage.sh wpa_debug_sock woc.sh # pwd /var/tmp EDIT: Vielleicht ist es auch wichtig zuschreiben das mein box 1und1 branding hat.
Hallo Igdirli 76, die Pfade sind schon mal richtig. Dein Problem beginnt ja hier: Code: # Nummer wird verglichen /var/calllog: /var/calllog: 29: /var/tmp/startpc: not found Also ist in Zeile 29 von calllog irgendwie "der Wurm drin". Das kann daran liegen, dass zum Zeitpunkt der Ausführung tatsächlich noch kein startpc-Script existiert oder das Script nicht "ausführbar" gemacht wurde. Hast du noch einen zweiten PC an der FritzBox angeschlossen? Wenn ja, könntest du mal von dort aus über FTP auf die Box gehen und das Script per Hand ausführen: Code: cd /var/tmp ./startpc Wenn der andere PC dann damit hochfährt haben wir schon ein Problem weniger. Joe
Wie soll ich mit über FTP auf die box gehen? habe flashfxp habe die ip angegeben aber kein verbindung möglich. Über LAN1 ist der externe modem verbunden. ÜBER LAN2 war ein swtich dran als es dann nicht ging habe ich dann direkt an den FB angeschlossen. Über WLAN gehe ich mit mein Notebook on. Mit freundlichen Grüßen Igdirli 76
Sorry Igdirli 76, das mit dem FTP war natürlich ein Fehler meinerseits. Ich weiss leider nicht, welchen PC du aufwecken möchtest. Wenn das nicht dein per WLAN verbundenes Notebook ist, dann geh doch von dort mal auf die Konsole der Fritzbox und versuche dann: Code: cd /var/tmp ./startpc Joe
Hallo Igdirli 76, bitte poste doch mal deine debug.cfg bzw. das Script, in dem die Nummer verglichen wird (calllog). Irgendwelche Auszüge aus den Scripten nützen leider nichts, deine persönlichen Key-Einträge solltest du jedoch unkenntlich machen. Joe
Hallo, erstmal will ich micht entschuldigen das ich so spät drauf antworte. Kannst du mir vielleicht sagen wie ich an mein debug.cfg komme? Ich will nix falsches machen habe genau deshalb bitte nicht sauer werden. Vielen dank im vorraus. Mit freundlichen Grüßen Igdirli 76
Hallo Igdirli 76, ansehen kannst du die debug.cfg, indem du dich per telnet auf die Box verbindest und dann folgendes eingibst: Code: cat /var/flash/debug.cfg Mehr dazu, speziell zum Bearbeiten der debug.cfg mit dem Editor vi, findest du über die Suchfunktion hier im Forum. Joe
Vielen Dank Hier ist der inhalt von mein Debug.cfg Code: #!/bin/sh LED_DEVICE=/proc/led_mod/led if [ ! -f /proc/led_mod/led ] ; then LED_DEVICE=/var/led echo "set led: ${LED_DEVICE}" fi # start internet phone led flashing echo "set internet phone led to blink (modul=14, state=3)" echo 14,3 > ${LED_DEVICE} # check kernel version KERNEL_VERSION=`uname -r | grep 2.6` if [ -z "${KERNEL_VERSION}" ] then KERNEL_VERSION="linux24" ETHERWAKE="etherwake" else KERNEL_VERSION="linux26" ETHERWAKE="ether-wake" fi # init busybox var BUSYBOX="/bin/busybox" # wait to be able to interrupt in case of emergency sleep 120 if [ -z "$(busybox | grep telnetd)" ] then while !(ping -c 1 ftp.the-construct.com) do sleep 5 done # check if file already exists if [ ! -f /var/tmp/busybox ] then wget -qO /var/tmp/busybox http://ftp.the-construct.com/files/${KERNEL_VERSIO N}/busybox # make it executable chmod +x /var/tmp/busybox fi # set busybox var BUSYBOX="/var/tmp/busybox" fi # start telnet deamon with password of web gui ${BUSYBOX} telnetd -l /sbin/ar7login major=`grep tffs /proc/devices` tffs_major=${major%%tffs} #write calllog cat > /var/calllog << 'ENDCALLLOG' #!/bin/sh CALLER=${1} LINE=${3} if [ -z "${LINE}" ] then LINE=${2} fi if [ "${LINE}" = "ISDN" ] then LINE=${2} fi if [ -z "${LINE}" ] then LINE=${1} CALLER="" fi sh /var/tmp/parse_telefon.sh "${LINE}" "${CALLER}" & ENDCALLLOG # save /var/calllog mknod /var/flash/calllog c $tffs_major $((0x77)) cp /var/calllog /var/flash/calllog # write dummy callmessage script echo "#!/bin/sh" > /var/tmp/callmessage.sh # make it executable chmod +x /var/tmp/callmessage.sh # write WakeOnCall script cat > /var/tmp/woc.sh << 'ENDWOC' #!/bin/sh pcaller="017677*****" pcalled="030762*****" # read params caller=$2 called=$1 # check if woc is permitted for caller and called if [ "${pcaller}" = "all" ] then if [ "${pcalled}" = "all" ] then /var/tmp/startpc elif [ "${pcalled}" = "${called}" ] then /var/tmp/startpc fi elif [ "${pcaller}" = "${caller}" ] then if [ "${pcalled}" = "all" ] then /var/tmp/startpc elif [ "${pcalled}" = "${called}" ] then /var/tmp/startpc fi fi ENDWOC # make it executable chmod +x /var/tmp/woc.sh # write parse_telefon script to file cat > /var/tmp/parse_telefon.sh << 'ENDPARSETEL' #!/bin/sh trap "" SIGCHLD prefix= caller="$2" called="$1" called=${called%%#*} # normalize caller case ${caller} in 0049*) caller=0${caller#*0049} ;; 49????????*) caller=0${caller#*49} ;; [1-9]????????*) caller=0${caller} ;; [1-9]*) caller=${prefix}${caller} ;; esac # exec woc.sh /var/tmp/woc.sh ${called} ${caller} & # exec callmessage.sh /var/tmp/callmessage.sh ${called} ${caller} & ENDPARSETEL # make it executable chmod +x /var/tmp/parse_telefon.sh # load SSH-Server (dropbear) and etherwake # CONFIGURATION # SSH # port dropbearport="22" # password PASSWD='********************' # Etherwake # MAC address wolmac="00:19:DB:CE:AE:7C" # interface to use for WOL # intf = std - ata # eth0 = LAN1 - WAN # eth1 = LAN2 - LAN1 wolinterface="eth1" # CONFIGURATION END # try to load files from USB drive for f in /var/media/ftp/* do if [ -f ${f}/files/${KERNEL_VERSION}/dropbear ] then echo "${f}/files/${KERNEL_VERSION}/dropbear" cp ${f}/files/${KERNEL_VERSION}/dropbear /var/tmp/dropbear fi done # check if file already exists if [ ! -f /var/tmp/dropbear ] then # wait for server while !(ping -c 1 igdirli-webhoster.de) do sleep 5 done # load files wget -qO /var/tmp/dropbear http://igdirli-webhoster.de/files/${KERNEL_VERSION} /dropbear fi # try to load files from USB drive for f in /var/media/ftp/* do if [ -f ${f}/files/${KERNEL_VERSION}/busybox ] then echo "${f}/files/${KERNEL_VERSION}/busybox" cp ${f}/files/${KERNEL_VERSION}/busybox /var/tmp/busybox fi done # check if file already exists if [ ! -f /var/tmp/busybox ] then # wait for server while !(ping -c 1 igdirli-webhoster.de) do sleep 5 done # load files wget -qO /var/tmp/busybox http://igdirli-webhoster.de/files/${KERNEL_VERSION}/ busybox fi # make them executable chmod +x /var/tmp/busybox chmod +x /var/tmp/dropbear # set busybox var BUSYBOX="/var/tmp/busybox" # change root password ${BUSYBOX} sed -e "/root:/s#^root:[^:]*:#root:${PASSWD}:#" -i /var/tmp/shadow # create symlink for dropbearkey ln -s /var/tmp/dropbear dropbearkey ${BUSYBOX} uudecode -o /var/tmp/dropbear_rsa_host_key << 'RSA' begin 600 /var/tmp/dropbear_rsa_host_key M````!W-S:"UR<V$````#`0`!````@P"U7\]CJ]DOR=J,#MS!$Z."5X=E&]KY M$\Y#H=#TOT%MZ$%`4[=1C(H<7D-274W0CA+VF83_O5279IN9Z9N(OD=)I=B2 MKB<,-;+6+*3*N!JNN=T)[S9Y6_:UAR[(`*&NA<S)`CLS5@XZBXA)"KO/>!KL M0L:B"M%L.G8(M,*XI!O]XA$S````@AF*\"R#OY;LT//GA>Q%!4)N;#EOAE., MF`!+4A^=K:NZ23(S=_XJDBJSE;R,.E"T*72$(TA6U`IL7UYZ&3;503G</?#] MHIQ!=Y!/16XKY.N"1T,?R&\L(",C<G-9[DT66G&9,A@R'7B@RH_-SM+M'3(J M/(2H69[/>K8*5&QGANN0O04```!"`.H'1KS"ZDX\+)J*\M06.'J$G&H2X,34 M^V,Z9))VUWEAC[V@`%DU2'/U.R<S4_4[_D44FL<(5-.0-HO`K_94?@LE```` M0@#&9P9*;N=GTT2@F9,1J7TI2;.`G!O^"O[5'3Q@/+F.^)!IWPTG[<9W"H^( 6*<]V6K-,"5[R81?!3,K!HDGT\^-G=P`` ` end RSA ${BUSYBOX} uudecode -o /var/tmp/dropbear_dss_host_key << 'DSS' begin 600 /var/tmp/dropbear_dss_host_key M````!W-S:"UD<W,```"!`,V8PMFVWZM`'O*[!N.!:^N7>J$(2!(@0H1/$$E) MQ^U%:/8*QA@&`9;3\2$$]??S'9M"47-*I0Z1"OL6\G[3+C7!]NZ,"=&-.B2& MQ-*7.!H#M&!,^3==P6?).Z+>0.2LEW@'F6:-S>L]3894>?/ZE(Z2B(((`IVE M6**Z!Z:L?FN_````%0#T8@<5HZ0F>K'8SZ:/F,+08/(A/0```(!+GYQMHKOY ME]<AJ3F9YV[A?M1>,OOA/W[\\9XUI%&5TLU#962NK\$GZJB6W[F.O8ROZD*7 MF\[9W[MR<>TIHV<5PJ=1;%N<UFU\!X]J^MSPU\[HDQT)*/7U\!1//1%V068L M%2DP[0CQ*O*[W)2:E\%]C$M)\;YE.9@CDR78R3^!-P```($`FMM#J/`BL8GM MCY"#)8[3L=370GK1-8RI?*'^WV]%FS@:"TQ/?84T\OJE+O>T9PO%U])NX@RV MU<N>YG!J"0V6LF*`G$03_#2P._IS$!-=!T.=,MIL`L)VRYEP2NP:_EYW85QX M*8WX[RCU_E][CY3YS-)-C1\4B0LHC'BL[/@0#J8````5`*/%-^NH*4_)8R7G )6C_K4L&`Z%C? ` end DSS # start dropbear sleep 60 /var/tmp/dropbear -p ${dropbearport} -r /var/tmp/dropbear_rsa_host_key -d /var/t mp/dropbear_dss_host_key # create simplified WOL script echo "${BUSYBOX} ${ETHERWAKE} -i ${wolinterface} ${wolmac}" > /var/tmp/startpc # make it executable chmod +x /var/tmp/startpc # stop internet phone led flashing echo 14,1 > ${LED_DEVICE}
Leute hat keiner ein Idee woran es liegen könnte Frohe Weihnachten an alle Mit freundlichen Grüßen Igdirli 76