cd /tmp
wget http://downloads.openwrt.org/snapshots/targets/ipq40xx/generic/openwrt-ipq40xx-zyxel_nbg6617-squashfs-sysupgrade.bin
sysupgrade openwrt-ipq40xx-zyxel_nbg6617-squashfs-sysupgrade.bin
opkg update
opkg install luci
opkg install relayd
opkg install luci-proto-relay
opkg install kmod-usb-storage block-mount kmod-fs-ext4
# смонтировать flash-usb на opt
# добавить dest opt /opt в /etc/opkg.conf
rm -r etc lib node_modules package.json usr
opkg install -d opt node
opkg install -d opt node-npm
export PATH=$PATH:/opt/usr/bin
export LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib
cd /opt
npm install dorita980
npm init
# добавить в /etc/rc.local
export LD_LIBRARY_PATH=/opt/lib:/opt/usr/lib
/opt/usr/bin/node /opt/www/roomba_http_basic.js &
|