I followed koMar's instruction and I it's working perfect with Logitech QuickCam Pro 9000. The only thing it work is that code I insert into /etc/init.d/done is not exectued, so I have to manually enter mount and mjpeg_streamer command everytime I reboot the router. If I try to enter following command, I get response:
root@OpenWrt:~# /etc/init.d/done
/bin/sh: can't open /etc/rc.common
I would also like to make some additional steps:
- put router in wireless client mode, that it will connect to my existing wireless network
- save images to Windows server share in local network, instead on USB key
- is it possible to enable motion detector with wl-500gp and make picture only when camera captures the motion
About wireless part I managed to reconfigure wireless and network file, so wireless part get's ip number 192.168.1.107 from dhcp, but if I remove lan cable from router, it's not possible to connect to router on his ip anymore?
Here are my wireless settings:
config wifi-device wifi0
option type atheros
#option channel auto
option channel 6
option txantenna 2
option rxantenna 2
# REMOVE THIS LINE TO ENABLE WIFI:
#option disabled 1
config wifi-iface
option device wifi0
option network wlan
#option mode ap
option mode sta
option ssid BENEDICIC
option encryption psk
option key [password]
Network settings:
config 'switch' 'eth0'
option 'vlan0' '1 2 3 4 5*'
option 'vlan1' '0 5'
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'type' 'bridge'
option 'ifname' 'eth0.0'
option 'proto' 'static'
option 'ipaddr' '192.168.1.50'
option 'netmask' '255.255.255.0'
option 'gateway' '192.168.1.1'
option 'dns' '192.168.1.1'
config 'interface' 'wan'
option 'ifname' 'eth0.1'
option 'proto' 'dhcp'
config 'interface' 'wlan'
option 'ifname' 'wifi0'
option 'proto' 'dhcp'
Response I get from "ifconfig" is:
root@OpenWrt:~# ifconfig
ath0 Link encap:Ethernet HWaddr 00:1D:0F:AF:AD:57
inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:374 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:39764 (38.8 KiB) TX bytes:1099 (1.0 KiB)
br-lan Link encap:Ethernet HWaddr 00:18:F3:3B:69:9C
inet addr:192.168.1.50 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1310 errors:0 dropped:0 overruns:0 frame:0
TX packets:532 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:163561 (159.7 KiB) TX bytes:64693 (63.1 KiB)
eth0 Link encap:Ethernet HWaddr 00:18:F3:3B:69:9C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1302 errors:0 dropped:0 overruns:0 frame:0
TX packets:810 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:191345 (186.8 KiB) TX bytes:162041 (158.2 KiB)
Interrupt:4
eth0.0 Link encap:Ethernet HWaddr 00:18:F3:3B:69:9C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1310 errors:0 dropped:0 overruns:0 frame:0
TX packets:532 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:168801 (164.8 KiB) TX bytes:66821 (65.2 KiB)
eth0.1 Link encap:Ethernet HWaddr 00:18:F3:3B:69:9C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:286 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:92664 (90.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1064 (1.0 KiB) TX bytes:1064 (1.0 KiB)
wifi0 Link encap:UNSPEC HWaddr 00-1D-0F-AF-AD-57-98-0E-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15485 errors:0 dropped:0 overruns:0 frame:5
TX packets:163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:195
RX bytes:2089583 (1.9 MiB) TX bytes:11220 (10.9 KiB)
Interrupt:6
And "iwconfig":
root@OpenWrt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
eth0.0 no wireless extensions.
eth0.1 no wireless extensions.
br-lan no wireless extensions.
wifi0 no wireless extensions.
ath0 IEEE 802.11g ESSID:"BENEDICIC" Nickname:""
Mode:Managed Frequency:2.437 GHz Access Point: 00:14:BF:A5:43:52
Bit Rate:36 Mb/s Tx-Power:16 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:B35D-59C8-52D7-AF51-2416-6FD1-C944-B054 Security mode:restricted
Power Management:off
Link Quality=35/70 Signal level=-61 dBm Noise level=-96 dBm
Rx invalid nwid:7336 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
I am not so experienced in linux so I will be appreciate for any help!