This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

up-main.sh

By: a guest on Nov 24th, 2010  |  syntax: Bash  |  size: 2.42 KB  |  views: 164  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2. #
  3. # (C) Copyright TOSHIBA CORPORATION 2002
  4. #
  5. # $Id: up-main.sh,v 1.9 2002/05/20 00:56:19 taniai Exp $
  6. #
  7.  
  8. verNo=1.2.JP   # <-- FW Ver. Set
  9. langNo=1         # <-- Language Code Set
  10.  
  11.  
  12. cd /fwup
  13.  
  14. # 0) For First LCD  
  15. ./filedec hd-err-drv.o ${verNo} 0           # For Script LCD OFF
  16. if [ $? != 0 ]  
  17. then    ./err-disp DEC_ERRDRV 10
  18.         /bin/sync
  19.         /sbin/halt
  20. fi
  21. /sbin/insmod -o 000 00000000.bin        
  22.  
  23. # ------
  24.  
  25. # 1) FILE Decode(LCD & KBD & insmod )
  26. ./filedec hd-legna-lcd-up.o ${verNo} 0      # LCD OFF
  27. if [ $? != 0 ]  
  28. then    ./err-disp DEC_LCDDRV 10
  29.         /bin/sync
  30.         /sbin/halt
  31. fi
  32. ./filedec hd-legna-kbddrv.o ${verNo} 0      # LCD OFF
  33. if [ $? != 0 ]  
  34. then    ./err-disp DEC_KBDDRV 10
  35.         /bin/sync
  36.         /sbin/halt
  37. fi
  38. ./filedec hd-legna-from.o ${verNo} 0        # LCD OFF
  39. if [ $? != 0 ]  
  40. then    ./err-disp DEC_FROMDRV 11
  41.         /bin/sync
  42.         /sbin/halt
  43. fi
  44. ./filedec hd-legna-sram.o ${verNo} 0        # LCD OFF
  45. if [ $? != 0 ]  
  46. then    ./err-disp DEC_SRAMDRV 11
  47.         /bin/sync
  48.         /sbin/halt
  49. fi
  50. # ------
  51.  
  52. # 2) insmod( KBD & FROM & LCD)
  53. /sbin/insmod -o 222 00002222.bin  # KBD
  54. if [ $? != 0 ]  
  55. then    ./err-disp INSMOD_KBD 10
  56.         /bin/sync
  57.         /sbin/halt
  58. fi
  59. /sbin/insmod -o 333 00003333.bin  # FROM
  60. if [ $? != 0 ]  
  61. then    ./err-disp INSMOD_FROM 11
  62.         /bin/sync
  63.         /sbin/halt
  64. fi
  65. /sbin/insmod -o 444 00004444.bin  # SRAM
  66. if [ $? != 0 ]  
  67. then    ./err-disp INSMOD_SRAM 11
  68.         /bin/sync
  69.         /sbin/halt
  70. fi
  71. /sbin/insmod -o 111 00001111.bin  # LCD
  72. if [ $? != 0 ]  
  73. then    ./err-disp INSMOD_LCD 10
  74.         /bin/sync
  75.         /sbin/halt
  76. fi
  77. # ------
  78.  
  79. # 3) modude % insmod Del
  80. /bin/rm 00000000.bin
  81. /bin/rm 00001111.bin
  82. /bin/rm 00002222.bin
  83. /bin/rm 00003333.bin
  84. /bin/rm 00004444.bin
  85. # ------
  86.  
  87. # 4) FW UP
  88. ./fwup  2  1 ${verNo} ${langNo}    # FW UPDATE    
  89. if [ $? != 0 ]  
  90. then    /bin/sync
  91.         /sbin/halt
  92. # then  exit 1
  93. fi
  94. # ------
  95.  
  96. # 5) rmmod KBD,LCD,FROM,ERR-LCD
  97. /sbin/rmmod 111
  98. if [ $? != 0 ]  
  99. then    ./err-disp RMMOD_LCD 9
  100.         /bin/sync
  101.         /sbin/halt
  102. fi
  103. /sbin/rmmod 222
  104. if [ $? != 0 ]  
  105. then    ./err-disp RMMOD_KBD 9
  106.         /bin/sync
  107.         /sbin/halt
  108. fi
  109. /sbin/rmmod 333
  110. if [ $? != 0 ]  
  111. then    ./err-disp RMMOD_FROM 10
  112.         /bin/sync
  113.         /sbin/halt
  114. fi
  115. /sbin/rmmod 444
  116. if [ $? != 0 ]  
  117. then    ./err-disp RMMOD_SRAM 10
  118.         /bin/sync
  119.         /sbin/halt
  120. fi
  121. /sbin/rmmod 000
  122. # ------
  123.  
  124. # 6) sync
  125. /bin/sync
  126. # ------
  127.  
  128. # 7) WAIT  % Back Ligtht OFF Mobile Disk Off
  129. /sbin/halt
clone this paste RAW Paste Data