mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2023-12-14 07:22:58 +01:00
be more verbose on install for #10
This commit is contained in:
parent
026f1c3c69
commit
3a33ca4b82
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue