Skip to content

Commit ce8f0d1

Browse files
authored
Update support.sh: Use "free -h" to make it easier to view sizes
1 parent 631ddc2 commit ce8f0d1

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

support.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ function collect_support_info()
127127
CPU_ARCH="$( uname -m )"
128128
CPU_BITS="$( getconf LONG_BIT )"
129129
CPU_TOTAL="$( nproc )"
130-
MEM_TOTAL="$( free -h | grep Mem | gawk '{print $2}' )"
130+
MEMORY_INFO="$( free -h )"
131+
MEM_TOTAL="$( echo "${MEMORY_INFO}" | grep Mem | gawk '{print $2}' )"
131132
VERSION_FILE="${ALLSKY_CONFIG}/piversion"
132133
if [[ -s ${VERSION_FILE} ]]; then
133134
PI_MODEL="$( < "${VERSION_FILE}" )"
@@ -136,10 +137,6 @@ function collect_support_info()
136137
fi
137138
###
138139

139-
### Memry Info
140-
MEMORY_INFO="$( free )"
141-
###
142-
143140
### Network Info
144141
# obfuscate IP, MAC and ipv6 addresses
145142
NETWORKS="$( ip a |
@@ -182,7 +179,7 @@ function collect_support_info()
182179
###
183180

184181
### pi Camera stuff
185-
PI_CAMERAS="$( libcamera-still --list-cameras 2> /dev/null )"
182+
RPI_CAMERAS="$( libcamera-still --list-cameras 2> /dev/null )"
186183
###
187184

188185
### get installed package information
@@ -259,8 +256,8 @@ function generate_support_info()
259256

260257
local LIBCAMERA_FILE="${TEMP_DIR}/libcamera.txt"
261258
{
262-
print_heading "Libcamera Devices"
263-
print "${PI_CAMERAS}"
259+
print_heading "Libcamera Cameras"
260+
print "${RPI_CAMERAS}"
264261
} > "${LIBCAMERA_FILE}"
265262

266263
local i2C_FILE="${TEMP_DIR}/i2c.txt"

0 commit comments

Comments
 (0)