reboot command?

Posted by: ukengb

reboot command? - 15/03/2005 11:24

How can I reboot the empeg from the command line?

Sounds silly as there is a reboot command, but that and shutdown -r and init 6 all simply seem to restart the player app, whereas the 'site reboot' command via ftp does a true reboot.

So how can I get that same functionality from the command line?
Posted by: tonyc

Re: reboot command? - 15/03/2005 11:35

Here's my reboot script:

Code:

#!/bin/sh
sync
rom
ro
echo reboot > /proc/empeg_notify



Invoking reboot this way causes a true reboot for me. I believe Hijack's taking care of business there. I also think Hijack tries to make sure the drives are mounted ro before it reboots, but you know, belt and suspenders.
Posted by: ukengb

Re: reboot command? - 15/03/2005 13:27

Ah that makes sense, thanks.

I did read somewhere Mark said that the site reboot command does the ro stuff first, but other reboot commands do not. But I cannot remember exactly what it was and in any case I might have got that the wrong way round. Trouble is I cannot find that post again.

Anyone know what reboot does what?

Also, how can I at the remote end of an ftp link find out if the ro command worked (so I don't reboot while it's still rw)? Or if site reboot handles the ro then maybe I don't need to worry.
Posted by: Roger

Re: reboot command? - 15/03/2005 14:18

Quote:
...but that and shutdown -r and init 6...


Which makes sense, because all that shutdown does is signal the init script. Since, on the empeg, init is a custom executable, it doesn't behave the same as a real init script, and simply restarts the player.