LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 564|回复: 0

哪位能帮我把这个文件处理一下!

[复制链接]
发表于 2011-1-22 21:41:24 | 显示全部楼层 |阅读模式
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下,按文字描述的要求处理一下。谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表