Skip to content

Commit

Permalink
Update installUpgradeFunctions.sh: Shorten "computer" name
Browse files Browse the repository at this point in the history
so it fits better in the Allsky Website
  • Loading branch information
EricClaeys authored Jul 11, 2024
1 parent 34de087 commit 9053aed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/installUpgradeFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,8 @@ function get_RAM()
function get_computer()
{
# The file has a NULL at the end so to avoid a bash warning, ignore it.
local MODEL="$( tr --delete '\0' < /sys/firmware/devicetree/base/model )"
local MODEL="$( tr --delete '\0' < /sys/firmware/devicetree/base/model |
sed 's/Raspberry Pi/RPi/')"
local GB="$( get_RAM )"
echo "${MODEL}, ${GB} GB"
}
Expand Down

0 comments on commit 9053aed

Please sign in to comment.