Skip to content

Instantly share code, notes, and snippets.

@geraintluff
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geraintluff/591c30785c00dc923e96 to your computer and use it in GitHub Desktop.
Save geraintluff/591c30785c00dc923e96 to your computer and use it in GitHub Desktop.
Your Unix machine is awaited in Valhalla - witness!

The shutdown messages on the Mac/Linux command line are baked into the /sbin/shutdown executable.

This replaces the messages with suitable Mad Max: Fury Road quotes. You can make your own, but since you're patching a binary file the replacements MUST, I repeat MUST be exactly the same number of characters as the original, or your computer will not ride eternal, shiny and chrome.

The two versions below are for a Ubuntu Linux variant, and Mac OS X Yosemite (both versions Work For Me on at least one machine).

LANG=C sudo sed -i '' 's/The system is going down for reboot/I live, I die, I live again! Reboot/g' /sbin/shutdown
LANG=C sudo sed -i '' 's/The system is going down for power off in/I am awaited in Valhalla! Powering off in/g' /sbin/shutdown
LANG=C sudo sed -i '' 's/The system is going down for halt in/I am awaited in Valhalla! Halting in/g' /sbin/shutdown
LANG=C sudo sed -i '' 's/The system is going down for maintenance/Mediocre! Shutting down for maintenance/g' /sbin/shutdown
LANG=C sudo sed -i '' 's/The system is going down for/WITNESS ME! System going for/g' /sbin/shutdown
sudo sed -i 's/The system is going down for reboot/I live, I die, I live again! Reboot/g' /sbin/shutdown
sudo sed -i 's/The system is going down for power off in/I am awaited in Valhalla! Powering off in/g' /sbin/shutdown
sudo sed -i 's/The system is going down for halt in/I am awaited in Valhalla! Halting in/g' /sbin/shutdown
sudo sed -i 's/The system is going down for maintenance/Mediocre! Shutting down for maintenance/g' /sbin/shutdown
sudo sed -i 's/The system is going down for/WITNESS ME! System going for/g' /sbin/shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment