Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

How to shutdown bubba from a remote machine?

Got problems with your B2 or B3? Share and get helped!
Post Reply
wm.bubba
Posts: 82
Joined: 11 May 2009, 12:58

How to shutdown bubba from a remote machine?

Post 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?
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post 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
Co-founder OpenProducts and Ex Excito Developer
wm.bubba
Posts: 82
Joined: 11 May 2009, 12:58

Post by wm.bubba »

That's brilliant - works perfectly.

Thanks Tor.
Post Reply