rc.local 728 B

123456789101112131415161718192021222324252627282930
  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. chmod 777 /dev/ttyS*
  8. # Create dummy video node for chromium V4L2 VDA/VEA with rkmpp plugin
  9. echo dec > /dev/video-dec0
  10. echo enc > /dev/video-enc0
  11. chmod 660 /dev/video-*
  12. chown root:video /dev/video-*
  13. # The chromium using fixed pathes for libv4l2.so
  14. ln -rsf /usr/lib/*/libv4l2.so /usr/lib/
  15. if [ -e /usr/lib/aarch64-linux-gnu/ ]; then
  16. ln -Tsf lib /usr/lib64
  17. fi
  18. # bash /etc/init.d/rkwifibt.sh &
  19. bash /usr/local/bin/init.sh
  20. /etc/scripts/product_model.sh
  21. /etc/scripts/watch.sh start > /dev/null 2>&1 &
  22. sleep 5
  23. # udhcpc -i usb0 -n
  24. /etc/scripts/system_led.sh &
  25. exit 0