#!/usr/bin/env bash TOP_DIR=$(cd $(dirname "$0")/.. && pwd) source "$TOP_DIR/config/paths" source "$LIB_DIR/functions.guest" indicate_current_auto exec_logfile echo "Shutting down" # Shutdown some time after returning so our caller has time to finish sudo -b sh -c 'sleep 2; /sbin/shutdown -P now'