LaFonera Software Heartbeat
From DD-WRT Wiki
(Difference between revisions)
Revision as of 17:44, 4 February 2007 (edit) Wildblue (Talk | contribs) ← Previous diff |
Revision as of 18:07, 4 February 2007 (edit) (undo) Wildblue (Talk | contribs) Next diff → |
||
Line 8: | Line 8: | ||
# download known_hosts file ( http://fon.freddy.eu.org/fonera/fon-0.7.0-rev4/etc/dropbear/known_hosts ) | # download known_hosts file ( http://fon.freddy.eu.org/fonera/fon-0.7.0-rev4/etc/dropbear/known_hosts ) | ||
# save the script and the fon key and fon known_hosts on your local ftp server or any location where you can download it with wget afterwards... | # save the script and the fon key and fon known_hosts on your local ftp server or any location where you can download it with wget afterwards... | ||
- | # | + | # find out your MAC-addresses and change them in the file dimthefon.sh |
+ | <pre> | ||
+ | find out your MAC-Adresses | ||
+ | -------------------------- | ||
+ | WLMAC | ||
+ | ifconfig ath0|grep HWaddr|sed -e "s/^.*HWaddr //" |sed -e "s/ //g" | ||
+ | |||
+ | MAC | ||
+ | ifconfig eth0|grep HWaddr|sed -e "s/^.*HWaddr //" |sed -e "s/ //g" | ||
+ | |||
+ | (this one is the second ath-mac-address - it is not needed) | ||
+ | WLMAC2 | ||
+ | ifconfig ath1|grep HWaddr|sed -e "s/^.*HWaddr //" |sed -e "s/ //g" | ||
+ | </pre> | ||
+ | |||
# paste the text below into Administration --> Commands --> Commands input field and click "Save startup" | # paste the text below into Administration --> Commands --> Commands input field and click "Save startup" | ||
Revision as of 18:07, 4 February 2007
this is a Script to simulate the fon heartbeat, so that the fonera with dd-wrt is shown as active on the fon maps...
this script is based on the work of futejia http://futejia.blogspot.com/ but modified to run on dd-wrt
- download my script from http://www.krikkit.net/download/simthefon/simthefon.sh (thanks to futejia http://futejia.blogspot.com/ for his script)
- download the fon key (you can get the fon key from here: http://fon.freddy.eu.org/fonera/fon-0.7.0-rev4/etc/dropbear/key )
- download known_hosts file ( http://fon.freddy.eu.org/fonera/fon-0.7.0-rev4/etc/dropbear/known_hosts )
- save the script and the fon key and fon known_hosts on your local ftp server or any location where you can download it with wget afterwards...
- find out your MAC-addresses and change them in the file dimthefon.sh
find out your MAC-Adresses -------------------------- WLMAC ifconfig ath0|grep HWaddr|sed -e "s/^.*HWaddr //" |sed -e "s/ //g" MAC ifconfig eth0|grep HWaddr|sed -e "s/^.*HWaddr //" |sed -e "s/ //g" (this one is the second ath-mac-address - it is not needed) WLMAC2 ifconfig ath1|grep HWaddr|sed -e "s/^.*HWaddr //" |sed -e "s/ //g"
- paste the text below into Administration --> Commands --> Commands input field and click "Save startup"
startup script:
#!/bin/sh sleep 60 mkdir /tmp/simthefon cd /tmp/simthefon /usr/bin/wget ftp://192.168.1.2/simthefon/key /usr/bin/wget ftp://192.168.1.2/simthefon/simthefon.sh /usr/bin/wget ftp://192.168.1.2/simthefon/known_hosts cat /tmp/simthefon/known_hosts >> /tmp/root/.ssh/known_hosts chmod a+x /tmp/simthefon/simthefon.sh ( /tmp/simthefon/simthefon.sh >/tmp/simthefon/simthefon.log & ) &
do not forget to edit the wget commands, to fit your locations...
reboot your fonera...
your hotspot should now be ACTIVE on http://maps.fon.com