diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/linux/ogOperations.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index ba141d9..79bff19 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -8,5 +8,7 @@ def poweroff(): subprocess.call(['/sbin/poweroff']) def reboot(): - print 'REBOOT' - + if os.path.exists('/scripts/oginit'): + subprocess.call('source /opt/opengnsys/etc/preinit/loadenviron.sh; /opt/opengnsys/scripts/reboot', shell=True) + else: + subprocess.call(['/sbin/reboot']) |