summaryrefslogtreecommitdiff
path: root/portato/plugins/shutdown.py
blob: 120bac8d5c942916f138f3d7198634bb03ed9b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- coding: utf-8 -*-
#
# File: portato/plugins/shutdown.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2007 René 'Necoro' Neumann
# This is free software.  You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>

import os

def shutdown (*args, **kwargs):
	"""Shutdown the computer. May not work if not root."""
	os.system("shutdown -h now")
312c&follow=1'>Style fixes.1.4Jason A. Donenfeld4-8/+10 2012-09-23Fix style.Jason A. Donenfeld1-11/+9 2-09-22 20:08:15 +0200'>2012-09-22EDITOR should be italicized.Jason A. Donenfeld1-2/+2 2012-09-22Allow git repo to be elsewhere via env var.Jason A. Donenfeld2-9/+24 2012-09-22I don't want --help or --version in bash completion.Jason A. Donenfeld1-1/+1 2012-09-22Vastly simplify GPG secret key finding logic.Jason A. Donenfeld1-1/+1 2012-09-22simplify logic slightlyBrian Mattern1-9/+12 2012-09-22turn -o filenames back onBrian Mattern1-10/+6 2012-09-22bash completion - Fix UTF8, escape spaces, inverted commas, brackets, and amp...Jeffrey Ratcliffe1-14/+10 2012-09-21Better gpg key completion for `pass init`Brian Mattern1-2/+15 2012-09-21Append to COMPREPLY instead of inserting by indexBrian Mattern1-3/+1