start 522 B

1234567891011121314151617181920212223242526
  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. ORDER="
  15. rtu_bxs_seyou
  16. daemon
  17. "
  18. for m in ${ORDER}
  19. do
  20. echo ":: starting $m"
  21. call_module "$m" start
  22. done