summaryrefslogtreecommitdiffstats
path: root/src/linux/ogOperations.py
blob: ba141d9a76b9a66054d50d0b395682f212e219ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import os
import subprocess

def poweroff():
	if os.path.exists('/scripts/oginit'):
		subprocess.call('source /opt/opengnsys/etc/preinit/loadenviron.sh; /opt/opengnsys/scripts/poweroff', shell=True)
	else:
		subprocess.call(['/sbin/poweroff'])

def reboot():
	print 'REBOOT'