Skip to content

Instantly share code, notes, and snippets.

View nitheeshas's full-sized avatar

Nitheesh nitheeshas

  • Munich, Germany
View GitHub Profile
anonymous
anonymous / shutSwap
Created July 9, 2016 11:15
Temporary fix for shutdown hang issue related to swap.
# If your computer doesn't turn off when you shut it down and the final message
# it gives is "Reached Target Shutdown", this is a temporary fix that may help.
# Bug in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1464917
#
# This is confirmed to work on Linux Mint 18.
#
# Copy and paste these steps into your terminal:
sudo touch /etc/rc6.d/shutSwap
sudo echo "sudo swapoff -a" > /etc/rc6.d/shutSwap