rc.local 752 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. #Don't modify these lines of code
  3. #if [ -f "/root/restart_count.log" ];then
  4. # /bin/bash /usr/local/bin/test_reboot.sh
  5. #fi
  6. /etc/scripts/gpio_init.sh
  7. /etc/scripts/product_model.sh
  8. chmod 777 /dev/ttyS*
  9. # Create dummy video node for chromium V4L2 VDA/VEA with rkmpp plugin
  10. #echo dec > /dev/video-dec0
  11. #echo enc > /dev/video-enc0
  12. chmod 660 /dev/video-*
  13. #chown root:video /dev/video-*
  14. # The chromium using fixed pathes for libv4l2.so
  15. #ln -rsf /usr/lib/*/libv4l2.so /usr/lib/
  16. #if [ -e /usr/lib/aarch64-linux-gnu/ ]; then
  17. # ln -Tsf lib /usr/lib64
  18. #fi
  19. # bash /etc/init.d/rkwifibt.sh &
  20. sleep 5
  21. /etc/scripts/play_ip
  22. /etc/scripts/watch.sh start > /dev/null 2>&1 &
  23. bash /usr/bin/init.sh
  24. # udhcpc -i usb0 -n
  25. /etc/scripts/system_led.sh &
  26. exit 0