mirror of https://git.48k.eu/ogclient
(BUG) Rename OG_SCRIPT_PATH to OG_PATH
parent
2934773d88
commit
38056d78a7
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue