diff --git a/rootfs/standard/var/www/mynode/device_info.py b/rootfs/standard/var/www/mynode/device_info.py index 50071942..0be08781 100644 --- a/rootfs/standard/var/www/mynode/device_info.py +++ b/rootfs/standard/var/www/mynode/device_info.py @@ -181,6 +181,10 @@ def get_device_type(): device = subprocess.check_output("mynode-get-device-type", shell=True) return device +def get_device_ram(): + ram = subprocess.check_output("free --giga | grep Mem | awk '{print $2}'", shell=True) + return ram + def get_local_ip(): local_ip = "unknown" try: diff --git a/rootfs/standard/var/www/mynode/settings.py b/rootfs/standard/var/www/mynode/settings.py index a749c420..b30ecc79 100644 --- a/rootfs/standard/var/www/mynode/settings.py +++ b/rootfs/standard/var/www/mynode/settings.py @@ -74,6 +74,7 @@ def page_settings(): changelog = get_device_changelog() serial_number = get_device_serial() device_type = get_device_type() + device_ram = get_device_ram() product_key = get_product_key() pk_skipped = skipped_product_key() pk_error = not is_valid_product_key() @@ -141,6 +142,7 @@ def page_settings(): "upgrade_logs": get_recent_upgrade_logs(), "serial_number": serial_number, "device_type": device_type, + "device_ram": device_ram, "product_key": product_key, "product_key_skipped": pk_skipped, "product_key_error": pk_error, diff --git a/rootfs/standard/var/www/mynode/templates/settings.html b/rootfs/standard/var/www/mynode/templates/settings.html index 959cdf60..05438538 100644 --- a/rootfs/standard/var/www/mynode/templates/settings.html +++ b/rootfs/standard/var/www/mynode/templates/settings.html @@ -490,6 +490,10 @@ Device Type {{device_type}} + + Device RAM + {{device_ram}} GB +