Advertisement
Guest User

initnew_tgw

a guest
Apr 22nd, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. send #13#10
  2. send #13#10
  3. send #13#10
  4. send #13#10
  5.  
  6. send 'watchdog_teaser'#13#10
  7. wait 'polo@TGW2' 'rtose@TGW2'
  8.  
  9. send 'rm -rf /flash'#13#10
  10. wait 'polo@TGW2'  'rtose@TGW2'
  11.  
  12. send 'reset'#13#10
  13. wait 'polo@TGW2'
  14.  
  15. send #13#10
  16. wait 'polo@TGW2'  'rtose@TGW2'
  17.  
  18. send #13#10
  19. wait 'polo@TGW2'  'rtose@TGW2'
  20.  
  21. send #13#10
  22. wait 'polo@TGW2'  'rtose@TGW2'
  23.  
  24. send #13#10
  25. wait 'polo@TGW2'  'rtose@TGW2'
  26.  
  27. send #13#10
  28. wait 'polo@TGW2'  'rtose@TGW2'
  29.  
  30. send 'boot /tftp/192.168.10.50/NOV_rtose_s.elf'#13#10
  31. wait 'Hit return to avoid reset!'
  32.  
  33. send #13#10
  34. send #13#10
  35. send #13#10
  36. send #13#10
  37. send #13#10
  38. send #13#10
  39. send #13#10
  40. wait 'rtose@TGW2'
  41.  
  42. send #13#10
  43. wait 'rtose@TGW2'
  44.  
  45. send #13#10
  46. wait 'rtose@TGW2'
  47.  
  48. send #13#10
  49. wait 'rtose@TGW2'
  50.  
  51. send #13#10
  52. send 'watchdog_teaser'#13#10
  53. wait 'rtose@TGW2'
  54.  
  55. send 'cd /flash'#13#10
  56. wait 'rtose@TGW2'
  57.  
  58. send 'tftp 192.168.10.50'#13#10
  59. wait 'tftp'
  60.  
  61. send 'get Application.zip'#13#10
  62. wait 'tftp'
  63.  
  64. send 'quit'#13#10
  65. wait 'rtose@TGW2'
  66.  
  67. send 'unzip Application.zip'#13#10
  68. wait 'rtose@TGW2'
  69.  
  70. send 'rm /flash/Application.zip'#13#10
  71. wait 'rtose@TGW2'
  72.  
  73. send 'chmod Z /flash/Application/Bank1/OS/rtose_s.elf'#13#10
  74. wait 'rtose@TGW2'
  75.  
  76. send 'ls -l /flash/Application/Bank1/OS/rtose_s.elf'#13#10
  77. wait 'rtose@TGW2'
  78.  
  79. send 'reset'#13#10
  80. wait 'System restart'
  81.  
  82. send #13#10
  83. wait 'rtose@TGW2'
  84.  
  85. send 'watchdog_teaser'#13#10
  86. wait 'rtose@TGW2'
  87.  
  88. send 'telnet 127.0.0.1 10023'#13#10
  89. wait 'Use'
  90.  
  91. send 'sky'#10
  92. wait 'Passwor'
  93.  
  94. send 'lookup'#10
  95. wait 'TGW'
  96.  
  97. send 'am fw set=192.168.10.4,0,192.168.10.1,10110'#10
  98. wait 'TGW'
  99.  
  100. send 'am fw set=192.168.10.50,0,192.168.10.1,0'#10
  101. wait 'TGW'
  102.  
  103. send 'am list'#10
  104. wait 'TGW'
  105.  
  106. send 'exit'#10
  107. wait 'rtose@TGW2'
  108.  
  109. send 'reset'#13#10
  110. wait 'rtose@TGW2'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement