rc.local 618 B

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