or just copy somewhere the file I attached let say to /volume1/private/S99ZZZ_Shutdown.sh login via SSH putty sudo su -i cp /volume1/private/S99ZZZ_Shutdown.sh /usr/local/etc/rc.d/ chmod 755 /usr/local/etc/rc.d/S99ZZZ_Shutdown.sh Don't ask me why it works, I found it here in forum years ago and just reused again