rc.local 1016 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # Copyright (c) 2019 Clementine Computing LLC.
  6. #
  7. # This file is part of PopuFare.
  8. #
  9. # PopuFare is free software: you can redistribute it and/or modify
  10. # it under the terms of the GNU Affero General Public License as published by
  11. # the Free Software Foundation, either version 3 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # PopuFare is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU Affero General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU Affero General Public License
  20. # along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
  21. #
  22. /home/bus/bin/setup-serial.py 2>&1 >> /tmp/init.log
  23. sleep 2
  24. /home/bus/bin/get_net_ids.sh 2>&1 >> /tmp/init.log
  25. sleep 2
  26. /home/bus/bin/connection_tether.sh 2>&1 >> /tmp/tether.log &
  27. sleep 2
  28. /home/bus/bin/update_loop.sh 2>&1 >> /tmp/run.log &
  29. sleep 2
  30. exit 0