|
本帖最后由 mtying 于 2010-12-13 19:30 编辑
参考:http://wl700ge.hezik.nl/content/ ... m-1078-installation
本机刷的是第三方固件:WL700gE_kc_1078_02.nas
下载地址:http://www.wl500g.info/files/asu ... 00gE_kc_1078_02.nas
本人对Linux系统是个小白,借此和WL-700gE的玩家一起交流。
升级完成重启后发现原 /opt目录下的 ipkg-5dqxK3文件没有了,不知道怎么回事?
更希望Linux高手予以指导!
---------------------------以下是外网教程原文----------------------------------------
Steps for adding Optware packages
1.Log into the router via telnet or ssh using the same login credentials as the web interface
2.Become root
◦sudo bash -l
◦Supply your web password when prompted to become root
3.Copy the existing /opt directory to /shares/MYVOLUME1 拷贝/opt目录到/shares/MYVOLUME1
◦(cd /; tar cf - opt) | (cd /shares/MYVOLUME1; tar xf -) 这两个命令没搞明白怎么备份和还原到指定目录的
4.Cycle power on the router with the front power button, log in and become root again by repeating steps 1 and 2 or execute:
◦mount -o bind /shares/MYVOLUME1/opt /opt
5.Update the optware packages and descriptions to the latest
◦ipkg update
◦ipkg upgrade
6.Install additional packages as required using the ipkg command. A full list of all packages can be found here.
7.Modify /opt/etc/rc.local startup script as necessary to start them.
Be sure to review the 1.0.7.8 FAQ before attempting to modify the /opt/etc/rc.local startup script.
If any modifications to rc.local result in a router that does not boot, simply press and hold the copy button on the front of the router during the boot process. This will instruct the primary boot script to use the default /opt filesystem and not mount the one in /shares/MYVOLUME1/opt. Fix the rc.local script in /shares/MYVOLUME1/opt/etc and cycle power.
----------------------------以下是升级过程,希望有人指导!---------------------------------------------------------------------------------------------------------------------------------------------------------------
WL700gE login: root
Password:
[root@WL700gE /]$ cd /opt
[root@WL700gE opt]$
[root@WL700gE opt]$ ls
bin include lib sbin var
doc info libexec share
etc ipkg-5dqxK3 man usr
[root@WL700gE opt]$
[root@WL700gE opt]$ cd /
[root@WL700gE /]$ sudo bash -l
[root@WL700gE /]$ cp -ar /opt /shares/MYVOLUME1/opt
[root@WL700gE /]$ mount -o bind /shares/MYVOLUME1/opt /opt
[root@WL700gE /]$
[root@WL700gE /]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feed ... /stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feed ... /stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
[root@WL700gE /]$
[root@WL700gE /]$ ipkg upgrade
Upgrading bash on /opt/ from 3.2.17-1 to 3.2.49-1...
Downloading http://ipkg.nslu2-linux.org/feed ... 3.2.49-1_mipsel.ipk
Upgrading busybox-base on /opt/ from 1.9.0-1 to 1.10.3-1...
Downloading http://ipkg.nslu2-linux.org/feed ... 1.10.3-1_mipsel.ipk
Upgrading busybox-links on /opt/ from 1.9.0-1 to 1.10.3-1...
Downloading http://ipkg.nslu2-linux.org/feed ... 1.10.3-1_mipsel.ipk
Upgrading bzip2 on /opt/ from 1.0.4-2 to 1.0.6-1...
Downloading http://ipkg.nslu2-linux.org/feed ... _1.0.6-1_mipsel.ipk
Upgrading cron on /opt/ from 4.1-7 to 4.1-8...
Downloading http://ipkg.nslu2-linux.org/feed ... on_4.1-8_mipsel.ipk
Installing psmisc (22.13-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feed ... _22.13-1_mipsel.ipk
Upgrading dropbear on /opt/ from 0.48.1-1 to 0.52-5...
Downloading http://ipkg.nslu2-linux.org/feed ... r_0.52-5_mipsel.ipk
Configuration file '/opt/etc/init.d/S51dropbear'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installe
d)
The default action is to keep your current version.
*** S51dropbear (Y/I/N/O/D) [default=N] ?y
Upgrading ipkg-opt on /opt/ from 0.99.163-9 to 0.99.163-10...
Downloading http://ipkg.nslu2-linux.org/feed ... oss/stable/ipkg-opt
_0.99.163-10_mipsel.ipk
Upgrading ncurses on /opt/ from 5.6-3 to 5.7-1...
Downloading http://ipkg.nslu2-linux.org/feed ... es_5.7-1_mipsel.ipk
Upgrading ncursesw on /opt/ from 5.6-1 to 5.7-1...
Downloading http://ipkg.nslu2-linux.org/feed ... sw_5.7-1_mipsel.ipk
Upgrading readline on /opt/ from 5.2-2 to 6.1-2...
Downloading http://ipkg.nslu2-linux.org/feed ... ne_6.1-2_mipsel.ipk
Upgrading sudo on /opt/ from 1.6.9.11-1 to 1.7.4.4-1...
Downloading http://ipkg.nslu2-linux.org/feed ... .7.4.4-1_mipsel.ipk
ipkg: extract_archive: /var/lib/sudo/: Operation not permitted
Configuration file '/opt/etc/sudoers'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installe
d)
The default action is to keep your current version.
*** sudoers (Y/I/N/O/D) [default=N] ? Upgrading uclibc-opt on /opt/ from 0.9
.28-12 to 0.9.28-13...
Downloading http://ipkg.nslu2-linux.org/feed ... .9.28-13_mipsel.ipk
Upgrading wget on /opt/ from 1.10.2-4 to 1.12-2...
Downloading http://ipkg.nslu2-linux.org/feed ... t_1.12-2_mipsel.ipk
Configuration file '/opt/etc/wgetrc'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions (if diff is installe
d)
The default action is to keep your current version.
*** wgetrc (Y/I/N/O/D) [default=N] ? Upgrading zlib on /opt/ from 1.2.3-2 to
1.2.5-1...
Downloading http://ipkg.nslu2-linux.org/feed ... _1.2.5-1_mipsel.ipk
Configuring bash
Configuring busybox-base
Configuring busybox-links |
|