phone_home_stat 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. #-------------------------------------------------------------------------------
  3. # Copyright (c) 2011 Sourcefabric O.P.S.
  4. #
  5. # This file is part of the Airtime project.
  6. # http://airtime.sourcefabric.org/
  7. #
  8. # Airtime is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # Airtime is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with Airtime; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. #
  22. #-------------------------------------------------------------------------------
  23. #-------------------------------------------------------------------------------
  24. # This script send data to data collection server
  25. #
  26. # Absolute path to this script
  27. SCRIPT=`readlink -f $0`
  28. # Absolute directory this script is in
  29. SCRIPTPATH=`dirname $SCRIPT`
  30. invokePwd=$PWD
  31. cd $SCRIPTPATH
  32. php -q phone_home_stat.php "$@" || exit 1