1
# -*- coding: utf-8 -*-
3
# File: portato/plugins/shutdown.py
4
# This file is part of the Portato-Project, a graphical portage-frontend.
6
# Copyright (C) 2007 René 'Necoro' Neumann
7
# This is free software. You may redistribute copies of it under the terms of
8
# the GNU General Public License version 2.
9
# There is NO WARRANTY, to the extent permitted by law.
11
# Written by René 'Necoro' Neumann <necoro@necoro.net>
15
def shutdown (*args, **kwargs):
16
"""Shutdown the computer. May not work if not root."""
17
os.system("shutdown -h now")