shutdown/Halt system from /etc/rc
Greetings,
I'm experimenting on a thin client based on diet-pc. When the pc starts it will run /etc/rc (specified at /etc/inittab). At /etc/rc i wrote a small script to check for a config file and if it does not exist i want to show a message and then shutdown/halt the machine. I tried to use:
- halt
- shutdown -h now
- init 0
but none of them worked
When i use init 0, i get the the message:
INIT: no more processes left in this runlevel.
Does anyone have any idea how to power off the machine?
Thanks in advance
Ladio
|