#!/bin/bash # This script is executed by /etc/init.d/rc.local stop. # Make sure that the script will "exit 0" on success or any other value on error. # In order to enable or disable this script just change the execution bits. [[ -d /etc/shutdown.d ]] && run-parts /etc/shutdown.d exit 0