|
here is the inner.sh file so you can see how i did it ..
#!/bin/sh
# inner.sh
#
# To run:
# tar zxO -f filename.fw inner.sh | sh -s filename.fw
#
# NOTE: Always test on limited manufacturing mode kernel
#
echo help
pwd > /dev/ttyS0
mount >/dev/ttyS0
ls / >/dev/ttyS0
ls /usr/sbin >/dev/ttyS0
ls /etc/init.d >/dev/ttyS0
cat /etc/init.d/S70autoexec >/dev/ttyS0
cat /etc/init.d/rcS >/dev/ttyS0
setxenv -f /dev/mtdblock1 -k hc.start_telnetd -b -v 1
sync
sync
sync
sleep 5
echo Ninja powers activate.
exit 0
just tar the files gzip it and rename it .fw that's it
the only part that matters is the setxenv line the rest was just to figure it out .
哪位能帮我把所附的文件在linux下,按文字描述的要求处理一下。谢谢! |
|