whfweb 发表于 2011-1-22 21:36

【求助】哪位能帮我把这个文件处理一下!

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下,按文字描述的要求处理一下。谢谢!
页: [1]
查看完整版本: 【求助】哪位能帮我把这个文件处理一下!