Tiny Core Linux
General TC => General TC Talk => Topic started by: hjkl on December 10, 2008, 02:43:20 PM
-
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.
-
"sudo exitcheck.sh shutdown" turns the power off on my laptop, so you could have a look at the exitcheck.sh script for enlightenment...
-
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
-
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.
-
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.
-
Hi tobiaus,
As I mentioned in my post, I started using 'exitcheck.sh'.
That means I also use 'poweroff' to shut down my computer on TinyCore.
However, I have an alias:
alias halt='exitcheck.sh'
in my /etc/profile. This alias works when I use a Linux console.
So, I just type 'halt' to turn off the computer. For now, I'm fine with the solution.
-
an interesting solution. although when it comes to this task i'm usually happy to type what is necessary, i don't use alias very often.