mount USB to /opt
Install ipkg-opt http://www.dd-wrt.com/wiki/index.php/Optware
# wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh
# chmod 755 optware-install-ddwrt.sh
# ./optware-install-ddwrt.sh
ipkg-opt works now!!
Install library, xinetd and saned
# ipkg-opt install libtiff libjpeg libieee1284 xinetd sane-backends
# vi /opt/etc/xinetd.d/saned
service saned { type = UNLISTED port = 6566 socket_type = stream server = /opt/sbin/saned protocol = tcp user = root group = root wait = no disable = no }
fix xinetd startup issue
# vi /opt/etc/init.d/S10xinetd
unset library path before run:
unset LD_LIBRARY_PATH
fix saned startup issue
# mkdir /opt/mnt
# cp -a /etc /opt/mnt
# vi /opt/etc/init.d/S01sane-backends
mount rw etc before run:
mount /opt/mnt/etc /etc
fix libusb issue by replace libusb to /opt/lib
http://cargon.net/linux/ddwrt/libusb-0.1.so.4.4.4
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=37104&sid=a8f3e7b641abdf47b28d918ceb1f125a
http://www.right.com.cn/forum/thread-45255-1-1.html