Post
Topic
Board Mining support
Re: More than 2 gpu's in linux
by
DeathAndTaxes
on 09/04/2012, 13:13:23 UTC
Death, when using USB drives add these two lines to your .bashrc file(1) and never worry about issuing the command by hand:
alias poweroff='sync ; poweroff'
alias reboot='sync ; reboot'


Notes:
(1) and to /root/.bashrc as well

I am lazy.  Often with a hung or crashed rig I just flip the PSU power switch off and on (with BIOS set to always power on after AC loss).  So I will stick with a manual sync just to be sure.  Still I intend to move to a PXE solution eventually (too many things to do) which makes it moot.

For people who do it "right" that is a useful feature.  I didn't realize you could make an alias of an existing command so I learned something.  Makes me wonder why the developer of BMAT uses the non-intuitive commmand "coldreboot" (which IIRC does some housekeeping before rebooting) instead of just aliasing "reboot" and "poweroff"?  Maybe he was unaware of that too?