Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (19 sloc) 0.445 kb
#!/bin/bash
# Author: Fred Brooker <original@fredbrooker.cz>
# URL: http://fredbrooker.cz/
which pmi >/dev/null 2>&1
if [ $? -eq 1 ]
then
echo -e "Installing powermanagement-interface package...\n"
sudo apt-get install powermanagement-interface
fi
which powermanagement-interface >/dev/null 2>&1
if [ $? -eq 1 ]
then
echo -e "Powermanagement-interface is not installed!\n"
exit 1
fi
sync
pmi action hibernate
echo -e "\nDone.\n"
exit 0
Jump to Line
Something went wrong with that request. Please try again.