# ping ipkg.nslu2-linux.org PING ipkg.nslu2-linux.org (140.211.169.169): 56 data bytes 64 bytes from 140.211.169.169: seq=0 ttl=50 time=212.430 ms 64 bytes from 140.211.169.169: seq=1 ttl=50 time=241.961 ms 64 bytes from 140.211.169.169: seq=2 ttl=50 time=219.324 ms --- ipkg.nslu2-linux.org ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max = 200.414/218.532/241.961 ms
# mkdir /tmp/jffs # mount /tmp/jffs /jffs -o bind # mkdir -p /jffs/tmp/ipkg # mkdir /jffs/opt # mount /jffs/opt /opt -o bind # mkdir /opt/etc
# cat > /opt/etc/ipkg.conf
src optware http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable dest root /jffs
ctrl-d 結束.
# export IPKG_CONF_DIR=/opt/etc
# ipkg update
# ipkg -force-depends install ipkg-opt
輸入Y, 覆寫原有設定檔.
# ipkg-opt update
# ipkg-opt install ipkg-opt
# ipkg-opt list_installed
ipkg-opt - 0.99.163-10 - The Itsy Package Manager uclibc-opt - 0.9.28-13 - micro C library for embedded Linux systems Successfully terminated.
# cd /opt # tar -cvf /tmp/dd-wrt_optware.tar * # gzip /tmp/dd-wrt_optware.tar
ftpput [options] remote-host remote-file local-file
# ftpput -u username -p password 192.168.1.250 dd-wrt_optware.tar /tmp/dd-wrt_optware.tar
ftpget [options] remote-host local-file remote-file
# ftpget -u username -p password 192.168.1.250 /tmp/dd-wrt_optware.tar.gz dd-wrt_optware.tar.gz
# tar -xzvf /tmp/dd-wrt_optware.tar.gz -C /opt
# ipkg-opt update # ipkg-opt upgrade
# env # cat /etc/profile # unset LD_LIBRARY_PATH