View Single Post
Old 06-10-2014, 11:10 PM   #35
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by NiLuJe View Post
AFAICT, SSH over WiFi is (notoriously?) unreliable w/ some networking hardware/setups.
yes it is....


mntroot rw
crontab -e -c /etc/crontab -u root

Code:
MAILTO=""
#*/15 * * * * /usr/sbin/checkpmond
*/15 * * * * /usr/sbin/tinyrot
*/60 * * * * /usr/sbin/loginfo tmpfs
*/60 * * * * /usr/sbin/loginfo localVars
*/60 * * * * /usr/sbin/loginfo userstore
*/60 * * * * /usr/sbin/loginfo memusedump
*/15 * * * * /usr/sbin/loginfo powerdcheck
#*/30 * * * * _OTAFILE=`ls /mnt/us/[Uu]pdate*.bin`;  if [ $? -eq 0 ]; then /usr/sbin/otacheck $_OTAFILE; killall -
* * * * * /mnt/us/pinger.sh &>/dev/null
* * * * * sleep 15 && /mnt/us/pinger.sh &>/dev/null
* * * * * sleep 30 && /mnt/us/pinger.sh &>/dev/null
* * * * * sleep 45 && /mnt/us/pinger.sh &>/dev/null
mntroot ro


[root@kindle root]# cat /mnt/us/pinger.sh
Quote:
#!/bin/sh
# WHERE THE FOLLOWING IP IS YOUR COMPUTERS IP NOT THE KINDLE!!!!!!!!
# GET IT RIGHT!!!!!!!
ping -c2 192.168.1.150
#
#TODO, find where I left that generalised command to test for wifi "on"ness... sigh
# and shove it in here before the ping (it's on a kindle somewhere)
That gives me a double ping heartbeat every 15 secs via cron.

Seems to sort out most of the fails.

Thought I would share.
twobob is offline   Reply With Quote