We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48e0bff commit c059c97Copy full SHA for c059c97
1 file changed
scripts/common/system-info.sh
@@ -610,7 +610,8 @@ if [ -f "${ROOT_ETC}/rpi-issue" ]; then
610
OS='Raspberry Pi OS'
611
DISTRO='Raspberry Pi OS'
612
elif [ -f "${ROOT_ETC}/os-release" ]; then
613
- OS=$(grep "^NAME" "${ROOT_ETC}/os-release" | tail -n 1 | awk -F'=' '{print $2}' | sed 's/\"//g')
+ OS=$(grep "^PRETTY_NAME" "${ROOT_ETC}/os-release" | tail -n 1 | awk -F'=' '{print $2}' | sed 's/\"//g')
614
+ [ -z "${OS}" ] && OS=$(grep "^NAME" "${ROOT_ETC}/os-release" | tail -n 1 | awk -F'=' '{print $2}' | sed 's/\"//g')
615
DISTRO=$(grep "^ID" "${ROOT_ETC}/os-release" | tail -n 1 | awk -F'=' '{print $2}' | sed 's/\"//g')
616
else
617
DISTRO=$(echo "${KERNEL_VERSION}" | sed \
0 commit comments