Quote:
Originally Posted by NiLuJe
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.