start 556 B

123456789101112131415161718192021222324252627
  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. # 重置海康相机(1200W海康U口相机在RTU板子上冷启动时, 需要先重置相机, 才能正常工作)
  8. HKCAM_RESET="${APPBINS_PATH}/hkcam_reset.out"
  9. if [ -e "$HKCAM_RESET" ]; then
  10. chmod a+x "$HKCAM_RESET"
  11. "$HKCAM_RESET"
  12. sleep 5
  13. fi
  14. # 启动主应用程序模块
  15. ORDER="
  16. rtu_linux_modules
  17. daemon
  18. "
  19. for m in ${ORDER}
  20. do
  21. echo ":: starting $m"
  22. call_module "$m" start
  23. done