cat of /usr/etc/rc.local 1. #!bin/sh 2. #Joe 3. #/bin/mount -a 4. mknod /dev/sda1 b 8 17 5. if [ -f /ebrmain/startgif/startgif ]; then 6. cd /ebrmain/startgif 7. ./startgif & 8. cd / 9. fi 10. #mount Usb 11. #if [ -f /ebrmain/mount_usb ];then 12. # echo "mount Usb" 13. # cd /ebrmain 14. # ./mount_usb 15. # cd / 16. #else 17. echo "mount Usb(default)" 18. cd /usr 19. ./mount_usb 20. cd / 21. #fi 22. sleep 1 23. #Test & Waveform Mode 24. if [ -f /mnt/ext2/waveform/writewf ]; then 25. cd /mnt/ext2/waveform 26. ./writewf 27. cd / 28. elif [ -f /mnt/ext2/test ]; then 29. cd /mnt/ext2 30. ./test 31. cd / 32. #else 33. # cd /ebrmain/led 34. # ./nled1 35. # cd / 36. fi 37. #Turn on vcom 38. if [ -f /mnt/ext2/turn_on_vcom ]; then 39. cd /mnt/ext2 40. ./turn_on_vcom 41. cd / 42. fi 43. #Show bmp 44. if [ -f /mnt/ext2/showbmp ]; then 45. cd /mnt/ext2 46. ./showbmp 47. cd / 48. fi 49. #Update kernel 50. if [ -f /mnt/ext2/update_kernel ]; then 51. cd /mnt/ext2 52. ./update_kernel 53. cd / 54. fi 55. #Update bmp 56. if [ -f /mnt/ext2/update_startbmp ]; then 57. cd /mnt/ext2 58. ./update_startbmp 59. cd / 60. fi 61. #update ap 62. if [ -f /mnt/ext2/update_ap ]; then 63. cd /mnt/ext2 64. ./update_ap 65. cd / 66. fi 67. #RUNNING AP 68. if [ -f /ebrmain/ebrmain ]; then 69. cd /ebrmain 70. ./ebrmain 71. cd / 72. fi