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