Skip to content

Commit

Permalink
fix: fix motd on armbian and orange pi based images (#272)
Browse files Browse the repository at this point in the history
* fix: fix motd on Orange Pi based images

Signed-off-by: Stephan Wendel <[email protected]>

* fix: fix motd on Armbian based images

Signed-off-by: Stephan Wendel <[email protected]>

* fix: fix path of armbian-release file

Signed-off-by: Stephan Wendel <[email protected]>

---------

Signed-off-by: Stephan Wendel <[email protected]>
  • Loading branch information
KwadFan authored Jan 16, 2024
1 parent 7f3027b commit 8124015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# shellcheck enable=require-variable-braces

# shellcheck disable=SC1091
[[ -f /etc/armbian-release-info.txt ]] && . /etc/armbian-release-info.txt
[[ -f /etc/armbian-release ]] && . /etc/armbian-release

if [[ -f /etc/armbian-distribution-status ]]; then
. /etc/armbian-distribution-status
Expand All @@ -40,6 +40,6 @@ ODROID_EXCEPTION="$(tr -d '\000' < /proc/device-tree/model | grep ODROID | grep

echo -e "\e[31m$(toilet -f big MainsailOS)\e[0m"
echo -e "Version $(cut -d ' ' -f3 /etc/mainsailos-release), based on \
\e[34mArmbian ${VERSION} ${DISTRIBUTION_CODENAME^}\e[0m $([[ ${BRANCH} == edge ]])"
\e[34mArmbian ${VERSION/-trunk/} ${DISTRIBUTION_CODENAME^}\e[0m $([[ ${BRANCH} == edge ]])"
echo -e "Running on \e[34m$(echo "${BOARD_NAME}" | sed 's/Orange Pi/OPi/' | \
sed 's/NanoPi/NPi/' | sed 's/Banana Pi/BPi/')\e[0m with \e[34mLinux ${KERNELID}\e[0m\n"
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# shellcheck enable=require-variable-braces

# shellcheck disable=SC1091
[[ -f /etc/orangepi-release-info.txt ]] && . /etc/orangepi-release-info.txt
[[ -f /etc/orangepi-release ]] && . /etc/orangepi-release

if [[ -f /etc/orangepi-distribution-status ]]; then
. /etc/orangepi-distribution-status
Expand Down

0 comments on commit 8124015

Please sign in to comment.