#!/bin/bashfunctiontask_exec(){wall"Going down for reboot now."sudoreboot
}functiontask_setup(){# Available environment variables# $ASSET_DIR# $TOOL_DIRSSH_USER=server
SSH_IDENTITY_FILE=$ASSET_DIR/id_rsa
TASK_ISSET="yes"}if[-z$HOSTMODE];thentask_exec
elsetask_setup
fi