init_bus.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. #
  3. # Copyright (c) 2019 Clementine Computing LLC.
  4. #
  5. # This file is part of PopuFare.
  6. #
  7. # PopuFare is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Affero General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # PopuFare is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
  19. #
  20. export BASEDIR="/home/bus/bin"
  21. export USEGPRS=0
  22. # Ask for our identifying network numbers
  23. #
  24. echo -n "Obtaining network hardware IDs..."
  25. $BASEDIR/bin/get_net_ids.sh 2>&1 > /dev/null
  26. echo " Done."
  27. # Start the network monitor / GPRS dialer
  28. #
  29. if [[ "$USEGPRS" == 1 ]] ; then
  30. /etc/ppp/ppp-dialer.sh &
  31. else
  32. $BASEDIR/bin/connection_tether.sh &
  33. fi
  34. # Start the client monitor (which then goes and starts everything else...)
  35. #
  36. $BASEDIR/bin/update_loop.sh &