be more verbose on install for #10

This commit is contained in:
Matthias Strubel 2012-06-15 18:57:03 +02:00
parent 026f1c3c69
commit 3a33ca4b82
2 changed files with 4 additions and 2 deletions

View file

@ -193,9 +193,11 @@ fi
if [ $2 = "station_cnt" ] ; then
#we want to append the crontab, not overwrite
crontab -l > $PIRATEBOX_FOLDER/tmp/crontab
crontab -l > $PIRATEBOX_FOLDER/tmp/crontab 2> /dev/null
echo "#--- Crontab for PirateBox-Station-Cnt" >> $PIRATEBOX_FOLDER/tmp/crontab
echo " */2 * * * * $PIRATEBOX_FOLDER/bin/station_cnt.sh > $WWW_FOLDER/station_cnt.txt " >> $PIRATEBOX_FOLDER/tmp/crontab
crontab $PIRATEBOX_FOLDER/tmp/crontab
[ "$?" != "0" ] && echo "an error occured" && exit 254
$PIRATEBOX_FOLDER/bin/station_cnt.sh > $WWW_FOLDER/station_cnt.txt
echo "installed, now every 2 minutes your station count is refreshed"
fi

View file

@ -2,4 +2,4 @@
CNT=`iw wlan0 station dump | grep Station | wc -l`
#DATE=`date`
#echo $DATE - $CNT
echo "$CNT"
echo "Currently there are $CNT connected clients"