Cramfs über Telnet auslesen, geht das?
- 
				Nico 77
 - Semiprofi

 - Beiträge: 1383
 - Registriert: Freitag 18. April 2003, 15:12
 
Cramfs über Telnet auslesen, geht das?
Ist es möglich das Cramfs ohne die Expertenfunktion, also z.B. über telnet auslesen zu lassen? Wenn ja was müsste ich eingeben?
			
			
									
						
										
						- 
				DieMade
 - Oberlamer, Administrator & Supernanny
 - Beiträge: 10532
 - Registriert: Samstag 13. Juli 2002, 10:49
 
- 
				Nico 77
 - Semiprofi

 - Beiträge: 1383
 - Registriert: Freitag 18. April 2003, 15:12
 
- 
				Ryker
 - Image-Team
 - Beiträge: 554
 - Registriert: Montag 2. Juni 2003, 10:38
 
- 
				Nico 77
 - Semiprofi

 - Beiträge: 1383
 - Registriert: Freitag 18. April 2003, 15:12
 
- 
				Dietmar
 - Senior Member
 - Beiträge: 8282
 - Registriert: Mittwoch 10. Oktober 2001, 00:00
 
- 
				pclin
 - Neugieriger

 - Beiträge: 6
 - Registriert: Mittwoch 30. Juli 2003, 16:27
 
Script nach /var/etc/getmtd.sh, rechte auf 755
#!/bin/sh
# getmtd.sh v.02 by pclin 04.08.2003
HTTPBODY="getmtd.sh%20v.02%20by%20pclin"
cat /proc/mtd >/tmp/mtd
i=$(grep without /tmp/mtd | sed -e 's/mtd//' | sed -e 's/: 007e0000 00020000 "flash without bootloader"//')
rm /tmp/mtd
if [ "$2" != "" ]; then
echo "use getmtd.sh -h for command line options"
exit
fi
while [ "$1" != "" ]
do
case $1 in
"-h")
echo "usage: getmtd.sh [ 0-5 ]"
echo "default = flash without bootloader"
exit;
;;
*)
i="$*"
;;
esac
shift
 
case $i in
0|1|2|3|4|5)
cat /dev/mtdblock/$i >/tmp/mtd$i.img
if ! ? =1; then HTTPCMD="mtdblock$i%20saved%20to%20/tmp/mtd$i.img%0A%0A!!!%20Fehler%20sind%20aufgetreten%20!!!"
else HTTPCMD="mtdblock$i%20saved%20to%20/tmp/mtd$i.img"; fi
echo "Saved mtdblock/$i >/tmp/mtd$i.img"
if [ -e /tmp/.neutrino ]; then wget -q -O /dev/null http://127.0.0.1/control/message?nmsg="$HTTPCMD" &
elif [ -e /tmp/.enigma ]; then wget -q -O /dev/null "http://127.0.0.1/cgi-bin/xmessage?timeo ... y=$HTTPCMD" &
else wget -q -O /dev/null http://127.0.0.1/control/message?nmsg=" ... 0A$HTTPCMD" & fi
;;
esac
exit 0
per telnet oder als Plugin per Blaue Taste
-gruß-
			
			
									
						
										
						#!/bin/sh
# getmtd.sh v.02 by pclin 04.08.2003
HTTPBODY="getmtd.sh%20v.02%20by%20pclin"
cat /proc/mtd >/tmp/mtd
i=$(grep without /tmp/mtd | sed -e 's/mtd//' | sed -e 's/: 007e0000 00020000 "flash without bootloader"//')
rm /tmp/mtd
if [ "$2" != "" ]; then
echo "use getmtd.sh -h for command line options"
exit
fi
while [ "$1" != "" ]
do
case $1 in
"-h")
echo "usage: getmtd.sh [ 0-5 ]"
echo "default = flash without bootloader"
exit;
;;
*)
i="$*"
;;
esac
shift
case $i in
0|1|2|3|4|5)
cat /dev/mtdblock/$i >/tmp/mtd$i.img
if ! ? =1; then HTTPCMD="mtdblock$i%20saved%20to%20/tmp/mtd$i.img%0A%0A!!!%20Fehler%20sind%20aufgetreten%20!!!"
else HTTPCMD="mtdblock$i%20saved%20to%20/tmp/mtd$i.img"; fi
echo "Saved mtdblock/$i >/tmp/mtd$i.img"
if [ -e /tmp/.neutrino ]; then wget -q -O /dev/null http://127.0.0.1/control/message?nmsg="$HTTPCMD" &
elif [ -e /tmp/.enigma ]; then wget -q -O /dev/null "http://127.0.0.1/cgi-bin/xmessage?timeo ... y=$HTTPCMD" &
else wget -q -O /dev/null http://127.0.0.1/control/message?nmsg=" ... 0A$HTTPCMD" & fi
;;
esac
exit 0
per telnet oder als Plugin per Blaue Taste
-gruß-
- 
				Nico 77
 - Semiprofi

 - Beiträge: 1383
 - Registriert: Freitag 18. April 2003, 15:12