2023-05-14 19:06:50 -04:00
|
|
|
import os
|
2023-05-14 19:41:44 -04:00
|
|
|
import sys
|
|
|
|
|
|
|
|
import pygame
|
2023-05-14 19:06:50 -04:00
|
|
|
|
|
|
|
|
|
|
|
def reboot_system():
|
2023-05-14 19:26:38 -04:00
|
|
|
os.system('sudo reboot')
|
2023-05-14 19:06:50 -04:00
|
|
|
|
|
|
|
|
|
|
|
def shutdown_system():
|
2023-05-14 19:32:12 -04:00
|
|
|
os.system('sudo shutdown now')
|
2023-05-14 19:41:44 -04:00
|
|
|
|
|
|
|
def update():
|
2023-05-14 19:44:08 -04:00
|
|
|
os.system('bash "export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin && cd ~/pocket_friends && git '
|
|
|
|
'pull"')
|
|
|
|
os.system('bash "export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin && cd ~/pocket_friends && git '
|
|
|
|
'checkout ."')
|
2023-05-14 19:41:44 -04:00
|
|
|
sys.exit(1)
|