BackupGGCode / wl500g

ASUS WL-5xx RT-N1x Oleg's based custom firmware
0 stars 0 forks source link

halt command reboots router instead of shutdown #233

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Login through telnet or use system command from web interface
2. Enter halt
3. Router reboots

What version of the product are you using?
WL500gpV2, Firmware: 1.9.2.7-rtn-r2972

I've searched forum and everybody says "halt" should shutdown, not reboot. Am I 
missing something? Is there any other command to shutdown router in latest 
firmwares?

Original issue reported on code.google.com by dmitriy.trt on 3 Jun 2011 at 8:41

GoogleCodeExporter commented 9 years ago
It works for me. Need more info about specific configuration. Try to exclude 
impact of

1) any additional software
2) connected external devices

Original comment by lly.dev on 3 Jun 2011 at 5:58

GoogleCodeExporter commented 9 years ago
Problem is pre-shutdown script: if it takes too much time for it to finish, 
system will reboot instead of shutting down. This pre-shutdown works fine:
#!/bin/sh
sleep 1s

And this reboots system:
#!/bin/sh
sleep 15s

Maybe it should return something to tell system "Everything is fine, please 
shutdown"?

Original comment by dmitriy.trt on 4 Jun 2011 at 3:48

GoogleCodeExporter commented 9 years ago
Unfortunately, I can't reproduce problem with sample provided above. Seems to 
be, some your custom process/script kills init.

The only problem inside firmware it can be kernel bug which cause Oops, but we 
need either reproducible test-case, or Oops text from serial console.

Original comment by lly.dev on 4 Jun 2011 at 7:16

GoogleCodeExporter commented 9 years ago
Ok, I'll try to create reproducible configuration from clean system with 
minimal changes in a few days or week. Which info should I send to you? Will it 
be enough to attach settings and flashfs files (which I can get from router 
web-interface)?

Original comment by dmitriy.trt on 4 Jun 2011 at 7:22

GoogleCodeExporter commented 9 years ago
Settings will not help, since I can't apply it on my side - I have different 
ISP, network, etc. Also, I will not analyze huge pre/post custom scripts.
To exclude ISP influence - simply disconnect WAN cable.

First of all - you didn't tell about your external USB devices, if any. About 
loaded kernel modules too.

P.S. Anyway, you can try latest night snapshot - from 
http://wpte.kicks-ass.net/downloads/Oleg%20Firmware/Nightlys/1.9.2.7-rtn/

Original comment by lly.dev on 4 Jun 2011 at 7:34

GoogleCodeExporter commented 9 years ago
Reboot instead of shutdown happens no matter if I have USB devices or not and I 
don't use WAN port at all.

Anyway, I don't have free time for testing right now, but I will have it soon. 
Will try night snapshots too. Thanks for your help.

Original comment by dmitriy.trt on 4 Jun 2011 at 7:40

GoogleCodeExporter commented 9 years ago
Any news?

Original comment by lly.dev on 15 Jun 2011 at 4:51

GoogleCodeExporter commented 9 years ago
Unreproducible

Original comment by lly.dev on 9 Sep 2011 at 8:40