看板 MOD_AP 關於我們 聯絡資訊
※ 引述《richjf (jeff)》之銘言: : http://www.dd-wrt.com/wiki/index.php/LaFonera_Software_Heartbeat : 照裡頭的做法執行,但官網上一直顯示是離線。 : 後來從他下面的連結 http://tinyurl.com/2agzdk 頁面去比對, : 發現要多一個步驟 : Paste this into the Additional Cron Jobs box on the Admin > Management page : then click Apply Settings. : 輸入 : */5 * * * * root /tmp/simthefon/simthefon cron >/tmp/simthefon/simthefon.log : 重開機後,到官網看就有上線了。 手上有一台FON+已刷DD-WRT,也成功把心跳送出去,但我想在這台FON+送出多台FON的 心跳,想請教大家該如何修改 ***************************************************************************** 2011/07/21最新進度 推翻掉2011/07/20的步驟,流程照照官方的走,只是多增加了一個地方 ***************************************************************************** 另外要在Cron Job多加一行,再多加一行 */5 * * * * root /tmp/simthefon/simthefon cron >/tmp/simthefon/simthefon.log */5 * * * * root /tmp/simthefon/simthefon00 cron >/tmp/simthefon/simthefon00.log ***************************************************************************** 成功運作該台的心跳後,採用telnet登入DD-WRT,然後步驟如下 cd /tmp/simthefon cp simthefon simthefon00 vi simthefon00 (把WLMAC和MAC改掉) 然後再去DD-WRT的Web介面的 系統管理-->基本管理-->儲存重啟 成功發出第二台心跳 但當我要準備跑送第三台的心跳時,直接透過telnet執行 /tmp/simthefon/simthefon01 cron >/tmp/simthefon/simthefon01.log 卻出現下面訊息 dbclient: connection to [email protected]:1937 exited: Host key mismatch for download.fon.com ! Fingerprint is md5 79:48:03:4b:71:68:7d:87:08:fb:48:17:e5:dd:97:eb Expected md5 c0:ca:e4:b6:64:ea:7c:bd:73:ab:04:5a:2a:bf:21:ec If you know that the host key is correct you can remove the bad entry from ~/.ssh/known_hosts 這是什麼狀況呢? 謝謝 ***************************************************************************** 2011/07/20 目前我的流程到這邊就卡關了,首先我把simthefon檔案複製兩份出來,分別為 simthefon00與simthefon01,simthefon檔案不動,自動取變數的MAC,而00和01 採用手動設定MAC的方式。 底下標綠色是我自行添加的,但其他地方要怎麼修改呢? 標紅字的地方應該是要動手腳的地方,但對結構不懂,不知如何下手 ***************************************************************************** #!/bin/sh mkdir /tmp/simthefon echo '#!/bin/sh sleep 30 cd /tmp/simthefon /usr/bin/wget http://www.wildblue.de/fonera/heartbeat/key /usr/bin/wget http://192.168.0.1/simthefon00 /usr/bin/wget http://192.168.0.1/simthefon01 /usr/bin/wget http://www.wildblue.de/fonera/heartbeat/simthefon /usr/bin/wget http://www.wildblue.de/fonera/heartbeat/known_hosts cat /tmp/simthefon/known_hosts >> /tmp/root/.ssh/known_hosts chmod a+x /tmp/simthefon/simthefon chmod a+x /tmp/simthefon/simthefon00 chmod a+x /tmp/simthefon/simthefon01 ( /tmp/simthefon/simthefon cron >/tmp/simthefon/simthefon.log & ) &' >> /tmp/simthefon/heartbeat echo 'SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/tmp/root */5 * * * * root /tmp/simthefon/simthefon cron >/tmp/simthefon/simthefon.log' >> /tmp/cron.d/heartbeat chmod a+x /tmp/simthefon/heartbeat /tmp/simthefon/heartbeat stopservice cron && startservice cron ***************************************************************************** 另外要在Cron Job多加一行,這邊是不是也要做什麼修改? */5 * * * * root /tmp/simthefon/simthefon cron >/tmp/simthefon/simthefon.log ***************************************************************************** -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.74.244.229 ※ 編輯: piligo 來自: 211.74.244.229 (07/21 11:49)