#!/bin/sh echo "Called for shut down..." halt -w echo "Swapoff..." swapoff -a &> /dev/null echo "Unmounting filesystems..." umount -a -r &> /dev/null