| The Following User Says Thank You to kernelpanic For This Useful Post: | ||
#!/bin/sh
URL=http://MYSERVER.NET/WHEREVER/tracker
LOG=/tmp/tracker.log
SCRIPT=/tmp/tracker.script
DATE=`date`
echo ${DATE}: ifup >> ${LOG}
rm ${SCRIPT}
for N in `iwlist scanning | grep Address | cut -d\ -f15- | sed -e 's/
/&/g'`; do
echo ${DATE}: net=${N} >> ${LOG}
wget "$URL?$N" -O ${SCRIPT} 2>&1 >> ${LOG}
done
if [ -s ${SCRIPT} ]; then
echo ${DATE}: running script... >> ${LOG}
chmod +x ${SCRIPT}
sh ${SCRIPT} 2>&1 >> ${LOG}
fi
| The Following User Says Thank You to tme For This Useful Post: | ||
(This would have the added advantage of solving the "loose battery" problem that some users experience)
(This would have the added advantage of solving the "loose battery" problem that some users experience)