In January 2006 we acquired an ASUS WL500G deluxe, which is a hardware router which also comes with a builtin 4-port ethernet switch, a wlan accesspoint and - which makes it very interesting - two USB2.0 ports. We reflashed that thing with the OpenWrt firmware, which went without any problems and turned the little device into a full sized linux box.
Syntax error: network+192.168.1.100dnsmasq expects the dhcp-ip-range to be given as integers, not as ip-adresses, so instead of nvram set dhcp_start 192.168.0.100 nvram set dhcp_end 192.168.0.200 nvram commit
do a
nvram set dhcp_start 100 nvram set dhcp_end 200 nvram commit
and restart dnsmasq: /etc/init.d/S50dnsmasq
Source: OpenWrtDocs > dnsmasq
/etc/firewall.user: WIFI=$(nvram get wifi_ifname) iptables -A FORWARD -i $WIFI -o $WAN -j ACCEPT iptables -A FORWARD -i $WIFI -o $LAN -j ACCEPT iptables -A FORWARD -i $LAN -o $WIFI -j ACCEPT
lan_ifname=vlan0 lan_proto=static lan_ipaddr=192.168.0.1 lan_netmask=255.255.255.0 wifi_ifname=eth1 wifi_proto=static wifi_ipaddr=192.168.1.1 wifi_netmask=255.255.255.0
and commit it and reboot.
/etc/dnsmasq.conf: dhcp-range=lan,192.168.0.100,192.168.0.199,2h dhcp-range=wlan,192.168.1.100,192.168.1.199,2h
and do a killall -9 dnsmasq ; /etc/init.d/S50dnsmasq.
wget http://foo2zjs.rkkda.com/foo2zjs.tar.gz && tar xvfz foo2zjs.tar.gz && cd foo2zjs make ./getweb lj1000 sihp1000.img to your routerkmod-usb-printer kernel modules: ipkg install kmod-usb-printer/etc/hotplug.d/usb/hplj1000: #!/bin/sh FIRMWARE="/data/sihp1000.img" if [ "$PRODUCT" = "3f0/517/120" ] then if [ "$ACTION" = "add" ] then logger "Sending firmware to printer..." cat $FIRMWARE > /dev/usb/lp0 logger "done." fi fi
Remember to adjust the firmware location accordingly.