mirror of
https://github.com/mynodebtc/mynode.git
synced 2025-01-11 19:30:11 +00:00
Add arch
This commit is contained in:
parent
f1797b33df
commit
9377e94c9b
|
@ -22,10 +22,13 @@ def get_current_version():
|
||||||
current_version = "error"
|
current_version = "error"
|
||||||
return current_version
|
return current_version
|
||||||
def get_device_type():
|
def get_device_type():
|
||||||
device = subprocess.check_output("mynode-get-device-type", shell=True).strip()
|
device = subprocess.check_output("mynode-get-device-type", shell=True).decode("utf-8").strip()
|
||||||
return device
|
return device
|
||||||
|
def get_device_arch():
|
||||||
|
arch = subprocess.check_output("uname -m", shell=True).decode("utf-8").strip()
|
||||||
|
return arch
|
||||||
def get_device_serial():
|
def get_device_serial():
|
||||||
serial = subprocess.check_output("mynode-get-device-serial", shell=True).strip()
|
serial = subprocess.check_output("mynode-get-device-serial", shell=True).decode("utf-8").strip()
|
||||||
return serial
|
return serial
|
||||||
def skipped_product_key():
|
def skipped_product_key():
|
||||||
return os.path.isfile("/home/bitcoin/.mynode/.product_key_skipped") or \
|
return os.path.isfile("/home/bitcoin/.mynode/.product_key_skipped") or \
|
||||||
|
@ -80,6 +83,7 @@ def check_in():
|
||||||
data = {
|
data = {
|
||||||
"serial": get_device_serial(),
|
"serial": get_device_serial(),
|
||||||
"device_type": get_device_type(),
|
"device_type": get_device_type(),
|
||||||
|
"device_arch": get_device_arch(),
|
||||||
"version": get_current_version(),
|
"version": get_current_version(),
|
||||||
"product_key": product_key,
|
"product_key": product_key,
|
||||||
"drive_size": get_drive_size(),
|
"drive_size": get_drive_size(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user