S01wlanhw 597 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides:
  4. # Short-Description: WLAN HW Init check
  5. # Description: Make sure the WLAN hardware is functional and initialized before proceeding.
  6. ### END INIT INFO
  7. . /opt/wz_mini/etc/rc.common
  8. case "$1" in
  9. start)
  10. echo "#####$(basename "$0")#####"
  11. #Wait for wlan hardware to be intitialized in app_init.sh, this must be blocking.
  12. #Lets come up with a solution for some cameras with failed wlan hw, someone on reddit mentioned it"
  13. echo "Waiting for wlan hw init"
  14. wait_for_wlan $(basename "$0")
  15. ;;
  16. *)
  17. echo "Usage: $0 {start}"
  18. exit 1
  19. ;;
  20. esac