找回密码
 注册
快捷导航
查看: 8331|回复: 0

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

[复制链接] |自动提醒
阅读字号:

381

回帖

45

积分

1011

资产值

钻石会员 Rank: 3Rank: 3Rank: 3

注册时间
2004-2-16
发表于 2011-1-22 21:36:42| 字数 585| - 中国–安徽–池州 电信 | 显示全部楼层 |阅读模式
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下,按文字描述的要求处理一下。谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Powered by Discuz! X3.5 © 2001-2023 Comsenz Inc

GMT+8, 2025-1-20 04:43 , Processed in 0.090416 second(s), 25 queries , Gzip On, OPcache On.

手机版|小黑屋|安卓客户端|iOS客户端|Archiver|备用网址1|备用网址2|在线留言|专门网

返回顶部