Page 1 of 1

How to shutdown bubba from a remote machine?

Posted: 11 May 2009, 13:39
by wm.bubba
I have been able to shutdown my bubba from my PC, by using the following command: ssh -n 192.168.1.3 'sudo shutdown -hP now'

I have created the private/public key pair to allow me to run the above command without entering a password, and also installed sudo and given myself access to the shutdown command.
bubba does shutdown, except the led keeps flashing and never goes out. I believe this means bubba has shutdown, but not powered off.

This must be possible as I can do this from the admin web page using the "Power Down" button. I just cannot find the command it is using to do this.
Can anyone help?

Posted: 11 May 2009, 16:01
by tor
Hi wm.bubba,

The reason that this does not work is that we do some things out of the ordinary here. Instead of a complete shutdown, what we do is that we do a reboot with a special message to the boot loader. That when it intercepts this during reboot it shuts down a lot of peripherals and then wait for a key press to start everything up again.

You can either issue the command, as root:

Code: Select all

/usr/lib/web-admin/backend.pl power_off
Or if you are curios on how its done do it manually by issuing the two commands:

Code: Select all

echo -e "3735928559">/sys/devices/platform/bubbatwo/magic
reboot
I hope this helps.

/Tor

Posted: 11 May 2009, 18:10
by wm.bubba
That's brilliant - works perfectly.

Thanks Tor.