rc.local 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #audio dir
  21. if [ ! -d /oem/audio ];then
  22. mkdir -p /oem/audio
  23. ln -snf /usr/share/baresip/bells_music_tone.wav /oem/audio/1.wav
  24. ln -snf /usr/share/baresip/bells_music_tone.wav /oem/audio/2.wav
  25. ln -snf /usr/share/baresip/bells_music_tone.wav /oem/audio/3.wav
  26. ln -snf /usr/share/baresip/bells_music_tone.wav /oem/audio/4.wav
  27. ln -snf /usr/share/baresip/bells_music_tone.wav /oem/audio/5.wav
  28. fi
  29. sleep 5
  30. /etc/scripts/play_ip
  31. /etc/scripts/watch.sh start > /dev/null 2>&1 &
  32. bash /usr/bin/init.sh
  33. # udhcpc -i usb0 -n
  34. /etc/scripts/system_led.sh &
  35. exit 0