General TC > General TC Talk

Do you 'halt' or 'poweroff'?

(1/2) > >>

hjkl:
Hi,

I have been using 'sudo halt' to shut down my computer.
I think my DSL-2.0 uses 'halt -d -f -i -p' when I use 'halt'.
Because TinyCore uses Busybox's halt, things are little different.
When I use 'sudo halt' on TinyCore, I have to push the power button myself
to shut down the computer.  So, I use 'poweroff' instead.
Because 'halt' is shorter, I am thinking of making 'halt' call 'poweroff'.
But, I do not know if that's good or bad.

Juanito:
"sudo exitcheck.sh shutdown" turns the power off on my laptop, so you could have a look at the exitcheck.sh script for enlightenment...

^thehatsrule^:
If you want a shorter name to call halt, you might have to use a shell alias or something similar instead if you are worried about that.

FYI, exitcheck.sh shutdown will use poweroff

hjkl:
Hi Juanito,
I didn't know about exitcheck.sh.  I took a look at it.  I like it.
Now, I can just type 'exitcheck.sh' to shut down my computer.

Hi ^thehatsrule^,
I will use a shell alias.

alias halt='exitcheck.sh'

In the end, I am glad that I asked about this.
Thank you for the answers.

tobiaus:
i usually use sudo su then shutdown, but since that does not appear to be an option (no shutdown) in tc, i used reboot.

what? reboot? yeah i was using it for shutdown -rn 0, a (probably naughty) thing i only use because it's faster than turning it off and on when i've got nothing mounted and i'm using toram. so i suppose for tc, poweroff.

Navigation

[0] Message Index

[#] Next page

Go to full version