From 38056d78a7d1c7cd7bd1d70842b6b78e3756c879 Mon Sep 17 00:00:00 2001 From: Alvaro Neira Ayuso Date: Tue, 4 Feb 2020 14:19:03 +0100 Subject: (BUG) Rename OG_SCRIPT_PATH to OG_PATH --- src/linux/ogOperations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/linux') diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index 5459768..e941864 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -38,13 +38,13 @@ def parseGetConf(out): def poweroff(): if os.path.exists('/scripts/oginit'): - subprocess.call('source ' + OG_SCRIPT_PATH + 'etc/preinit/loadenviron.sh; ' + OG_SCRIPT_PATH + 'scripts/poweroff', shell=True) + subprocess.call('source ' + OG_PATH + 'etc/preinit/loadenviron.sh; ' + OG_PATH + 'scripts/poweroff', shell=True) else: subprocess.call(['/sbin/poweroff']) def reboot(): if os.path.exists('/scripts/oginit'): - subprocess.call('source ' + OG_SCRIPT_PATH + 'etc/preinit/loadenviron.sh; ' + OG_SCRIPT_PATH + 'scripts/reboot', shell=True) + subprocess.call('source ' + OG_PATH + 'etc/preinit/loadenviron.sh; ' + OG_PATH + 'scripts/reboot', shell=True) else: subprocess.call(['/sbin/reboot']) -- cgit v1.2.3-18-g5258