rc.local 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #check factory reset
  7. etc/scripts/S99input-event-daemon start
  8. /etc/scripts/gpio_init.sh
  9. /etc/scripts/audio_init.sh
  10. /etc/scripts/product_model.sh
  11. chmod 777 /dev/ttyS*
  12. # Create dummy video node for chromium V4L2 VDA/VEA with rkmpp plugin
  13. #echo dec > /dev/video-dec0
  14. #echo enc > /dev/video-enc0
  15. chmod 660 /dev/video-*
  16. #chown root:video /dev/video-*
  17. # The chromium using fixed pathes for libv4l2.so
  18. #ln -rsf /usr/lib/*/libv4l2.so /usr/lib/
  19. #if [ -e /usr/lib/aarch64-linux-gnu/ ]; then
  20. # ln -Tsf lib /usr/lib64
  21. #fi
  22. # bash /etc/init.d/rkwifibt.sh &
  23. #audio dir
  24. if [ ! -d /oem/audio ];then
  25. mkdir -p /oem/audio
  26. ln -snf /usr/share/baresip/bells_music_tone.wav /oem/audio/1.wav
  27. ln -snf /usr/share/baresip/bells_music_tone.wav /oem/audio/2.wav
  28. ln -snf /usr/share/baresip/bells_music_tone.wav /oem/audio/3.wav
  29. ln -snf /usr/share/baresip/bells_music_tone.wav /oem/audio/4.wav
  30. ln -snf /usr/share/baresip/bells_music_tone.wav /oem/audio/5.wav
  31. fi
  32. sleep 5
  33. /etc/scripts/play_ip &
  34. /etc/scripts/watch.sh start > /dev/null 2>&1 &
  35. bash /usr/bin/init.sh
  36. # udhcpc -i usb0 -n
  37. /etc/scripts/system_led.sh &
  38. # write start log
  39. redis-cli LPUSH writelog-channel "INIT,System Started,"
  40. exit 0