rc.local 1.3 KB

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