From 1a69204ee1e406154bacb731bd1dcb4634ca9862 Mon Sep 17 00:00:00 2001 From: Justin Merrell Date: Fri, 24 Jan 2025 16:55:07 -0500 Subject: [PATCH] Update installer.sh --- installer.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installer.sh b/installer.sh index 1ad33ab..73a002d 100644 --- a/installer.sh +++ b/installer.sh @@ -230,10 +230,10 @@ touch /opt/OpenPod/data/permissions.json echo "==> OpenPod data files created." # ------------------------------- Hardware Info ------------------------------ # -hw_controller=$(grep Hardware /proc/cpuinfo | awk '{print $3}') -hw_revision=$(grep Revision /proc/cpuinfo | awk '{print $3}') -hw_model=$(grep Model /proc/cpuinfo | cut -d':' -f2 | sed 's/^\s*//') -hw_serial=$(grep Serial /proc/cpuinfo | awk '{print $3}') +hw_controller=$(grep Hardware < /proc/cpuinfo | cut -d ' ' -f 2) +hw_revision=$(grep Revision < /proc/cpuinfo | cut -d ' ' -f 2) +hw_serial=$(grep Serial < /proc/cpuinfo | cut -d ' ' -f 2) +hw_model=$(grep Model < /proc/cpuinfo | cut -d ' ' -f 2) echo "==> Hardware Info:" echo " Controller: $hw_controller"