Bennor
November 14, 2017, 6:03pm
21
There IS a shutdown script on the v2.x single bay My Cloud. It is:
/usr/local/modules/script/shutdown.sh
See the following posts from the thread in my prior post that indicates it DOES appear to work to some extent.
I tried to execute that shutdown.sh file and fortunately it works! So if anybody wants to shutdown a v2.x WD My Cloud you could use that command. I’ll try that WD Access program although I actually need a possibilty to shut it down from a mobile device!
If only it had WOL functionality. I’m probably going to buy a remote power socket and do it as follows:
Use SSH to shutdown device.
Use remote to disconnect it from power.
Use remote to connect it to power and it hopefully will boot!
EDIT:
W…
I have also found this error and noticed where the problem is: the CSS is hiding the button.
The following screenshots prove it.
Meanwhile I’m ssh’ing and “shutdown.sh -h now”.
Hope this helps both the users and the devs!
[image]
[image]
Another method using SSH:
Same problem here with my new Mycloud device, Firmware V2.
If you have a Mac or Linux box, there is a simple script solution. Just make sure that you can login with ssh. My script uses “expect”-shell, which is standard available on Mac and Linux. No idea about Windows.
OK, it comes here:
#!/usr/bin/expect
spawn ssh root@mycloud "halt -p"
expect "password:"
send "PASSWORD\n“;
interact
Just edit this script with the correct password and server name (IP address).
Make it executable with chmod…
There is also discussion of unhiding the code in the CSS file that hides the shutdown option from the v2.x single bay My Cloud Dashboard in that Safe Shutdown thread.