start 563 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. # script that runs on system startup
  3. # 2013-09-26 09:30 created by niujiuru
  4. . "$(dirname "$0")/set_env"
  5. . "$(dirname "$0")/modules/funcs/functions.sh"
  6. export_env
  7. # 启动主应用程序模块
  8. ORDER="
  9. yfkj_sshd
  10. myapp
  11. daemon
  12. "
  13. # 重置海康相机(1200W海康U口相机在RTU板子上冷启动时, 需要先重置相机, 才能正常工作)
  14. HKCAM_RESET="${APPBINS_PATH}/hkcam_reset.out"
  15. if [ -e "$HKCAM_RESET" ]; then
  16. chmod a+x "$HKCAM_RESET"
  17. "$HKCAM_RESET"
  18. sleep 15
  19. fi
  20. for m in ${ORDER}
  21. do
  22. echo ":: starting $m"
  23. call_module "$m" start
  24. done