Battlemesh logo
  • Comments
  • Edit
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
    • Edit SideBar
  • Login

Navigation

  • RecentChanges
  • FindPage
  • PastEvents
  • ContactUs
  • HelpContents

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
twö plüs thirtëen minüs 3?

  • BattleMeshV3.1416
  • SpeedTest

Step 1: Install uhttpd

cd /tmp
wget http://downloads.openwrt.org/backfire/10.03/atheros/packages/uhttpd_7_atheros.ipk
opkg install /tmp/uhttpd_7_atheros.ipk

Step 2: rc.local

Then edit your /etc/rc.local

root@OpenWrt:/tmp/speed# cat /etc/rc.local 
ifconfig eth0 192.168.150.50
ifconfig eth0:1 192.168.1.1
babeld -z 2,30 eth0 ath0 &
mkdir -p /tmp/speed
dd if=/dev/zero of=/tmp/speed/4M bs=1M count=4 &
uhttpd -h /tmp/speed/ -p 80
exit 0

Then at reboot, it should serve a 4MB file on all its interfaces.

Step 3: test the speed

To test the speed, do a simple wget on the other side, do a:

while true; do wget http://192.168.40.50/4M -0 /dev/null; done

The uhttpd still takes some 90% CPU if you download the file over the ethernet interface.

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01