#!/bin/sh echo "[*] Umounting..." umount -a echo "[*] Syncing..." sync echo "[*] Closing processes..." kill -a -s TERM sleep 5 echo "[*] Poweroff..."