mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
# wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh第一行直接貼到 Telnet/SSH 去執行,完成就可以取得安裝的程式檔案 /tmp/optware-install.sh。然後第二行才是執行這個安裝程式,你會見到類似的畫面輸出:
# sh /tmp/optware-install.sh
Checking system config ...如果沒有錯誤發生,它應該會在 /opt 目錄下建立 Optware 的結構,並且安裝執行環境跟最重要的 ipkg-opt 套件管理程式,以後就可以使用 ipkg-opt 來取代 DD-WRT 內建的 ipkg 指令。
Using 192.168.1.1 as default gateway.
Using the following nameserver(s):
nameserver 192.168.1.30
Warning: local nameserver is different than gateway!
Check config or enter:
sed -i s/192.168.*/192.168.1.1/ /tmp/resolv.conf
to correct this.
Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
uclibc-opt_0.9.28-12 100% |***********************************************| 832 KB 00:00:00 ETA
Updating /opt/etc/ld.so.cache
......
# ipkg-opt list|more
abook - 0.5.6-2 - Abook is a text-based addressbook program designed to use with mutt mail client.
ack - 1.90-1 - grep-like text finder
adduser - 1.10.3-1 - a multi-call binary for login and user account administration
adns - 1.4-2 - Asynchronous resolver library and DNS resolver utilities.
aget - 0.4.1-1 - Aget is a multithreaded HTTP download accelerator.
aiccu - 20070115-2 - Automatic IPv6 Connectivity Client Utility.
alac-decoder - 0.1.0-2 - A decoder for the apple lossless file format
......
# ipkg-opt update...(繼續閱讀)
# ipkg-opt install util-linux-ng
# swapon
Usage:
swapon -a [-e] [-v] [-f] enable all swaps from /etc/fstab
swapon [-p priority] [-v] [-f]enable given swap
swapon -s display swap usage summary
swapon -h display help
swapon -V display version
......