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")
ions'>+12 2020-05-04Update README.mdRené 'Necoro' Neumann1-3/+4 2020-05-04Fix for go-imap-uidplus has gone upstream, delete replace.René 'Necoro' Neumann2-7/+3 2020-05-04when tls verification is disabled for the feed, we should also disable this f...René 'Necoro' Neumann1-3/+4 2020-05-03Better handling of embedded images with relative urlsRené 'Necoro' Neumann1-13/+27 2020-05-03Slightly enhance loggingRené 'Necoro' Neumann1-4/+4 2020-05-03Explicit version infoRené 'Necoro' Neumann4-12/+15 2020-05-03--version flagRené 'Necoro' Neumann1-0/+6 2020-05-03Rename from 'client' to 'cl'René 'Necoro' Neumann5-26/+26 2020-05-03Use UIDPLUS Imap extensionRené 'Necoro' Neumann4-11/+33 2020-05-03Fix update in IMAPRené 'Necoro' Neumann1-2/+12 2020-05-03Update support for IMAPRené 'Necoro' Neumann5-17/+205 2020-05-03Option "reupload-if-updated"René 'Necoro' Neumann2-0/+4 2020-05-03Fix typoRené 'Necoro' Neumann1-2/+2 2020-05-02Use uuid library directly and encode to base64.René 'Necoro' Neumann6-10/+16 2020-05-02RestructureRené 'Necoro' Neumann8-95/+111 2020-05-02WIP: Message-IdsRené 'Necoro' Neumann8-5/+40 2020-05-02Typo and mention config example in READMERené 'Necoro' Neumann2-1/+3